Quote:
Originally Posted by ColdIce
Didnt work :/
|
Quote:
Originally Posted by Tee
Yea try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/paint", true) == 0) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You must be in a vehicle!"); ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255)); return 1; } return 0; }
|
I can't see the difference between the 2 codes...
Make sure this is defined in LuxAdmin.