This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction onScriptLoad ( )
{
L <- BindKey(true, 0x4C, 0, 0);
print( "BindKey Loaded. Key by [KM]Helathien." )
}
function onKeyDown( player, key )
{
if ( key == L )
{
if ( !player.Vehicle ) return 0;
else
{
local v = player.Vehicle;
if ( v.Lights == true )
{
v.Lights = false;
MessagePlayer( "[#00ff00][LIGHTS] [#ffffff]Vehicle lights turned off." , player )
}
else if ( v.Lights == false )
{
v.Lights = true;
MessagePlayer( "[#00ff00][LIGHTS] [#ffffff]Vehicle lights turned on." , player )
}
}
}
}
if ( cmd == "flip" )
{
if ( !player.Vehicle ) MessagePlayer( "[#ff1111]Error: [#ffffff]You need to be in a Vehicle to use this command." , player )
else
{
local veh = player.Vehicle;
veh.Rotation = Quaternion( 0.0, 0.0, 0.0, 0.0 );
MessagePlayer( "[#00ff00][INFO] [#ffffff]You have flipped your car." , player )
}
}
else if ( ( cmd == "afk" ) || ( cmd == "afks" ) )
{
local plr, b;
for( local i = 0; i <= GetMaxPlayers(); i++ )
{
plr = FindPlayer( i );
if ( ( plr ) && ( plr.Away ) )
{
if ( b ) b = b + ", " + plr.Name + ""
else b = plr.Name + ""
}
}
MessagePlayer( "[#33cc00]Information: [#ffffff]Displaying List Of People Who Are Afk" , player );
if ( b ) MessagePlayer( "[#33cc00]Information: [#FFFFFF]: " + b + "" , player );
else MessagePlayer( "[#009900][AFK][#ffffff] None " , player );
}