02.07.2011, 06:24
I have this vehicle spawning command, but there is a problem with it ;/ When a spawned vehicle is destroyed it respawns and i dont want them to respawn when they are spawned using this command.
Код:
if(!strcmp(cmdtext, "/scar", false, 5)) { if(!strlen(cmdtext[5]) return SendClientMessage(playerid, red, "Usage: /scar [Model ID]"); new veh = strval(cmdtext[5]); if(veh < 400 || veh > 611) return SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model"); new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a); CreateVehicle(veh, x,y,z, a, -1, -1, -1); return 1; }