23.02.2018, 08:16
Код:
CMD:rainbow(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) { SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to be a driver in a vehicle to use that command."); } else { new vehicleid; GetPlayerVehicleID(playerid); ChangeVehicleColor(vehicleid,-1,-1); SetTimerEx("RainBow", 2000, true, "i", playerid); } return 1; } forward RainBow(playerid); public RainBow(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicleid; GetPlayerVehicleID(playerid); ChangeVehicleColor(vehicleid,-1,-1); SetTimerEx("RainBow", 2000, true, "i", playerid); } return 1; }
The command doesn't effect at all, not even changing the color once, can someone help me with that?