03.05.2011, 01:57
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;
}