11.04.2011, 14:01
Okay, so I want to make a command that will change the color of a vehicle into the one I want.
Basicly if I want black /paintcar 0 0 , how can I do it?
Heres my current code:
Basicly if I want black /paintcar 0 0 , how can I do it?
Heres my current code:
pawn Код:
if(strcmp("/paintcar",cmdtext, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
ChangeVehicleColor (vehicleid, -1, -1);
return 1;
}
return 1;
}