27.02.2018, 12:03
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; }