Stop Respawning car ??
#1

I have tried many ways but with no success , so i have my /car command , but on vehicle death or on vehicle spawn i want to destroy that car but it still respawns it on place where i created it ...

code:

Код:
new ACAR[MAX_PLAYERS];
DestroyVehicle(ACAR[vehicleid]);// this is on vehicle death
DestroyVehicle(ACAR[vehicleid]); // on vehicle spawn

// and this is the car command
dcmd_acar(playerid,params[])
{
    new Float:x, Float:y, Float:z ;
    GetPlayerPos(playerid, x, y, z);
    new carid;
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_RED, "Unknown command. Use /cmds to see our server commands.");
 	if(sscanf(params, "i", carid))
	{
  		SendClientMessage(playerid,COLOR_RED,"USAGE: /Car [ID]");
	    return 1;
	}
	if(carid > 611 || carid < 400)
	{
	    SendClientMessage(playerid,COLOR_RED,"Vehicle ID 400-611");
	    return 1;
	}
	ACAR[playerid] = CreateVehicle(carid, x, y, z, 0, 0, 1, 500);
 	PutPlayerInVehicle(playerid, ACAR[playerid], 0);
	return 1;
}
i tried with setting respawn time to -1 , but no effect :confused
Reply


Messages In This Thread
Stop Respawning car ?? - by DonWade - 12.01.2012, 20:37
Re: Stop Respawning car ?? - by Rokzlive - 12.01.2012, 21:07
Re: Stop Respawning car ?? - by DonWade - 12.01.2012, 21:22
Re: Stop Respawning car ?? - by IceCube! - 12.01.2012, 21:54
Re: Stop Respawning car ?? - by DonWade - 13.01.2012, 10:17

Forum Jump:


Users browsing this thread: 3 Guest(s)