15.11.2013, 07:37
Quote:
I assume theres something wrong with your variable. let us see were "Captured" is created.
|
Quote:
public OnPlayerDeath(playerid, killerid, reason) { if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1) { LeavingCAPZONE(playerid); SendClientMessage(playerid, -1, "[ZONE]You have died! You failed to capture the zone!"); } return 1; } public OnPlayerSpawn(playerid) { if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1) { LeavingCAPZONE(playerid); SendClientMessage(playerid, -1, "[ZONE]You have left the capturing Zone!"); } return 1; } public OnPlayerDisconnect(playerid, reason) { if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1) { LeavingCAPZONE(playerid); } return 1; } |
new Captured[MAX_PLAYERS][30];