Код:
CMD:plate(playerid, params[])
{
new numberplate[35], string[128];
new vid = GetPlayerVehicleID
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_GREY, "unauthorized");
if(sscanf(params,"u", numberplate)) return SCM(playerid, COLOR_GREY, "Usage: /plate [text]");
{
SetVehicleNumberPlate(vid, numberplate);
format(string,sizeof(string),"{006600}[Vehicle] {AFAFAF}Plate changed to {006600}%s{AFAFAF}!", numberplate);
SendClientMessage(playerid,COLOR_GREY,string);
}
return 1;
}
This is my code for a /plate command to set the numberplate.