20.09.2013, 07:57
Type this in your Script :
- J.L Administration System .
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); } |