/SPAWN CMD?
#2

Type this in your Script :


Quote:

CMD : spawncar(playerid, params[])
{
if(pInfo[playerid][pLevel] >= 2)
{
new veh[30],vehid;
if(sscanf(params, "s[30]", veh)) return SendClientMessage(playerid, red, "Usage: /spawncar <Model ID/Vehicle Name>");
if(IsNumeric(veh)) vehid = strval(veh);
else vehid = ReturnVehicleModelID(veh);
if(vehid < 400 || vehid > 611) return SendClientMessage(playerid, red, "Invalid vehicle model!");
SpawnVehicle(playerid,vehid);
CommandToAdmins(playerid,"spawncar");
return 1;
}
else return ShowMessage(playerid, red, 1);
}
- J.L Administration System .
Reply


Messages In This Thread
/SPAWN CMD? - by MAFIAWARS - 20.09.2013, 07:45
Re: /SPAWN CMD? - by Axey187 - 20.09.2013, 07:57
Re: /SPAWN CMD? - by newbie scripter - 20.09.2013, 08:23
Re: /SPAWN CMD? - by MAFIAWARS - 20.09.2013, 08:23
Re: /SPAWN CMD? - by MAFIAWARS - 20.09.2013, 08:25
Re: /SPAWN CMD? - by newbie scripter - 20.09.2013, 08:32
Re: /SPAWN CMD? - by MAFIAWARS - 20.09.2013, 08:38
Re: /SPAWN CMD? - by MAFIAWARS - 20.09.2013, 08:40
Re: /SPAWN CMD? - by newbie scripter - 20.09.2013, 08:42
Re: /SPAWN CMD? - by Tropicali - 21.09.2013, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)