SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 01/01/2013, 12:06 PM   #1
Witnec
Little Clucker
 
Join Date: Oct 2011
Posts: 24
Reputation: 0
Default Respawn vehicles bug

Code:
public car_respawnFact(factionID)
{
    new bool:unwanted[MAX_CAR];
	for(new player=MIN_PLAYERID; player<MAX_PLAYERS_CURRENT+1; player++)
	{
		if(IsPlayerConnected(player) && IsPlayerInAnyVehicle(player))
			{unwanted[GetPlayerVehicleID(player)]=true;}
	}
	for(new car=1; car<=totalcars; car++)
		{if(CarInfo[car][cFaction] == factionID && unwanted[car]) car_respawn(car,false);}
	return 1;
}
Code:
if(strcmp(subcmd,"faction",true)==0)
		{
		    tmp = strtok(cmdtext,idx);
		    if(!strlen(tmp)) { return 1; }
		    new factId = strval(tmp);
		    if(factId<1 || factId>16) { return 1; }
		    new factname[LITTLE_STRING];
		    fact_name(factId, factname);
		    car_respawnFact(factId);
		    format(string,sizeof(string),"[Info] Respawn of the vehicles of the faction %s by %s.",factname,playername);
		    SendClientMessageToAll(COLOR_AOOC, string);
		    return 1;
		}

Can some one help this command don't respawn the vehicles
Witnec is offline   Reply With Quote
Old 01/01/2013, 02:02 PM   #2
Witnec
Little Clucker
 
Join Date: Oct 2011
Posts: 24
Reputation: 0
Default Re : Respawn vehicles bug

no one?
Witnec is offline   Reply With Quote
Old 02/01/2013, 01:59 PM   #3
Witnec
Little Clucker
 
Join Date: Oct 2011
Posts: 24
Reputation: 0
Default Re : Respawn vehicles bug

please help me !
Witnec is offline   Reply With Quote
Old 02/01/2013, 02:15 PM   #4
aslan890
Huge Clucker
 
aslan890's Avatar
 
Join Date: Sep 2011
Location: London, United Kingdom
Posts: 298
Reputation: 22
Default Re: Respawn vehicles bug

Try using another command if that one got bug
__________________
aslan890 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Respawn vehicles.. DevilRP Scripting Help 10 10/03/2012 01:39 PM
Help with respawn vehicles sniperwars Scripting Help 7 24/02/2012 11:51 PM
Respawn vehicles grand.Theft.Otto Help Archive 1 04/08/2011 04:48 AM
respawn all vehicles Madsen Help Archive 2 05/03/2011 11:40 PM
Respawn all vehicles BP13 Help Archive 5 10/12/2009 03:39 PM


All times are GMT. The time now is 11:17 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.