02.05.2011, 23:03
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/paint", true) == 0) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFF, "You must be in a vehicle!"); ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255)); return 1; } return 0; } |