Facing some issues
#2

pawn Код:
new Killing[MAX_TEAMS],
    bool:IsWar;

//When the war started
IsWar++;

public OnPlayerDeath(playerid,killerid,reason)
{
    if(IsWar && killerid != INVALID_PLAYER_ID) Killing[gTeam[killerid]]++;//Simple??
    return 1;
}

//When the war ended
IsWar--;
for(new i;i<MAX_TEAMS;i++)
{
    Killing[i] = 0;
}
EDITED
Reply


Messages In This Thread
Facing some issues - by Jafet_Macario - 05.09.2011, 18:10
Re: Facing some issues - by =WoR=Varth - 05.09.2011, 18:54
Re: Facing some issues - by [MWR]Blood - 05.09.2011, 18:59
Re: Facing some issues - by Jafet_Macario - 05.09.2011, 21:29
Re: Facing some issues - by [MWR]Blood - 06.09.2011, 10:57
Re: Facing some issues - by Jafet_Macario - 06.09.2011, 11:40
Re: Facing some issues - by [MWR]Blood - 06.09.2011, 11:57
Re: Facing some issues - by Jafet_Macario - 06.09.2011, 16:05
Re: Facing some issues - by =WoR=Varth - 06.09.2011, 16:19
Re: Facing some issues - by Jafet_Macario - 06.09.2011, 16:48

Forum Jump:


Users browsing this thread: 4 Guest(s)