06.01.2011, 19:20
pawn Код:
COMMAND:lightson(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid))return
SendClientMessage(playerid, 0x33FF66FF, "ERROR: You must be in a vehicle to use that command");
else
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), -1, VEHICLE_PARAMS_ON, -1, -1, -1, -1, -1);
SendClientMessage(playerid, SKY_BLUE, "The lights are {33FF66}on");
}
return 1;
}
COMMAND:lightsoff(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid))return
SendClientMessage(playerid, 0x33FF66FF, "ERROR: You must be in a vehicle to use that command");
else
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), -1, VEHICLE_PARAMS_OFF, -1, -1, -1, -1, -1);
SendClientMessage(playerid, SKY_BLUE, "The lights are {FF7A7A}off");
}
return 1;
}