OnPlayerDisconnected loops
#5

I don't understand why you need a code. anyways here is it
Код:
public OnPlayerDisconnect(playerid, reason) // loops didn't work while they do same functions
{
	for(new i=0; i < MAX_PLAYERS; i++)
	{
		if (TaxiDuty[playerid] == 1)
		{
	    	     TaxiDuty[playerid] = 0;
	    	     Drivers -= 1;
                }
	    	if(TaxiDuty[i] == 1)
	    	{
				SendClientMessage(i, COLOR, "Has left the game");
		}
	}
	return 1;
}
public OnPlayerDeath(playerid, killerid, reason) // worked well
{
	for(new i=0; i < MAX_PLAYERS; i++)
	{
		if (TaxiDuty[playerid] == 1)
		{
	    	     TaxiDuty[playerid] = 0;
	    	     Drivers -= 1;
                }
	    	if(TaxiDuty[i] == 1)
	    	{
				SendClientMessage(i, COLOR, "Has left the game");
		}
	}
	return 1;
}
Reply


Messages In This Thread
OnPlayerDisconnected loops - by AstroPoid - 27.02.2018, 11:24
Re: OnPlayerDisconnected loops - by PepsiCola23 - 27.02.2018, 11:38
Re: OnPlayerDisconnected loops - by AstroPoid - 27.02.2018, 11:43
Re: OnPlayerDisconnected loops - by PepsiCola23 - 27.02.2018, 11:47
Re: OnPlayerDisconnected loops - by AstroPoid - 27.02.2018, 12:03
Re: OnPlayerDisconnected loops - by Dayrion - 27.02.2018, 12:27
Re: OnPlayerDisconnected loops - by AstroPoid - 27.02.2018, 12:30
Re: OnPlayerDisconnected loops - by kingmk - 27.02.2018, 12:32
Re: OnPlayerDisconnected loops - by AstroPoid - 27.02.2018, 12:35
Re: OnPlayerDisconnected loops - by kingmk - 27.02.2018, 12:35

Forum Jump:


Users browsing this thread: 3 Guest(s)