24.05.2012, 15:03
I need the pawn code for:
setvehicleplatenumber
setvehicleplatenumber
CMD:setplate(playerid,params[])
{
new string[128],plate[128];
if(sscanf(params, "s", plate)) SendClientMessage(playerid, 0xF97804FF, "USAGE: /setplate [plate]");
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,COLOR_RED,"You need to be in a vehicle in order to use this..");
SetVehicleNumberPlate(vehicleid, plate);
format(string,sizeof(string),"Numberplate setted to: %s",plate);
SendClientMessage(playerid,COLOR_GREEN,string);
return 1;
}
for(new i = 1; i <= MAX_VEHICLES; i++) { SetVehicleToRespawn(i); SetVehicleNumberPlate(i, "CHANGE ME"); // Change "CHANGE ME" to your favorable plate. }
public OnGameModeInit()