24.09.2012, 03:32
pawn Код:
CMD:vplate(playerid, params[])
{
new inputtext;
if(sscanf(params, "d", inputtext)) return SendClientMessage(playerid, -1, "USAGE: /vplate [text]");
new id = GetPlayerVehicleID(playerid);
new vehicleid = VehicleID[id];
strmid(VehicleNumberPlate[id], inputtext, 0, sizeof(VehicleNumberPlate[]), 255);
SaveVehicle(id);
SetVehicleNumberPlate(id, inputtext);
SetVehicleToRespawn(vehicleid);
new msg[128];
format(msg, sizeof(msg), "You have changed vehicle number plate to %s", inputtext);
SendClientMessage(playerid, -1, msg);
return 1;
}