04.04.2015, 14:37
i got a command to set the numberplate of a vehicle, but it wont change.
command =
log =
plate is always XYZSR998
command =
PHP код:
CMD:plateex(playerid,params[])
{
printf("Changing %d's plate to %s",GetPlayerVehicleID(playerid),params);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid),params);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
return 1;
}
Код:
[04 Apr 15:34:25] [debug] OnPlayerCommandReceived(0, /plate test) [04 Apr 15:34:25] [server] [cmd] xXShadowXx (ID 0): /plate test [04 Apr 15:34:25] Changing 275's plate to test [04 Apr 15:34:25] [debug] OnVehicleSpawn(275)