26.09.2012, 23:50
Im having a small problem with my plate change commend:
It works but the person who types it has to respawn to see it (and sometimes still sees default) I tried respawning the car but then it goes back to where it was spawned and the paintjob/mods are lost.Anybody have a solution please?
Код:
COMMAND:mplate(playerid, params[]) { new pr0veh; pr0veh = GetPlayerVehicleID(playerid); if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "/mplate [text]"); new string[128]; format(string, sizeof(string), "%s",params); SetVehicleNumberPlate(pr0veh,string); SendClientMessage(playerid, 0xFFFFFFFF, "Plate Customized!"); return 1; }