09.09.2009, 08:55
Код:
public OnPlayerDisconnect(playerid, reason) { if(takim[playerid] == 1) { if(currClass[playerid] == 0) { teamPlayers[0]--; } else if(currClass[playerid] == 1) { teamPlayers[0]--; } else if(currClass[playerid] == 2) { teamPlayers[0]--; } else if(currClass[playerid] == 3) { teamPlayers[1]--; } else if(currClass[playerid] == 4) { teamPlayers[1]--; } else if(currClass[playerid] == 5) { teamPlayers[1]--; } } else if(takim[playerid] == 1) { //Do nothing } return 0; }
But it doesn't work. Please help me
(OnPlayerSpawn has takim[playerid] ==1)