03.12.2013, 19:54
pawn Код:
CMD:v(playerid, params[])
{
new id;
if(sscanf(params, "u", id)) return SCM(playerid, -1, ""RO"* Uso: /v [nombre/id]");
if(!IsNumeric(id)){
id = GetVehicleModelIDFromName(id);
}
else{
id = strval(id);
}
if(id < 400 || id > 611) return SCM(playerid, 0xFF0000AA, ""RO"* ID o nombre del vehнculo invбlido!");
CarSpawner(playerid, id);
new string[120];
format(string, sizeof(string), "Has spawneado un %s (Modelo: %d)", VehicleNames[id-400], id);
SCM(playerid, -1, string);
return 1;
}