[HELP] war problem gangs
#3

How can in this code put if member from wartim1 kill another member of wartim1 then wartim2 get two points I try everything but it doesn't work the code is fine know when someone from wartim1 kill someone from wartim2 I just have a problem know when member kill leader in wartim1 or wartim2 that the same team get points if you know what I mean? Thanks


pawn Код:
if(PlayerInfo[killerid][Member] == WarTim1 || PlayerInfo[killerid][Leader] == WarTim1 || PlayerInfo[playerid][Member] == WarTim2 || PlayerInfo[playerid][Leader] == WarTim2)
            {
                if(killerid != INVALID_PLAYER_ID)
                {
                    if(PlayerInfo[killerid][Leader]) WarTim1Score += 2;
                    else WarTim1Score++;
                }
                if(killerid != INVALID_PLAYER_ID)
                {
                    PlayerInfo[killerid][Kills]++;
                }
                PlayerInfo[playerid][Deaths]++;
                if(PlayerInfo[killerid][Lider]) format(war,128,"(War) Leader %s kill player %s from war team 2.(+2 boda)",hWarName[0],hWarName[1]);
                else format(war,128,"(War) Member %s is kill player %s from warteam2.(+1 bod)",hWarName[0],hWarName[1]);
                WarMessage(0x800080FF,war);
            }
Reply


Messages In This Thread
[HELP] war problem gangs - by Luca12 - 10.01.2015, 18:20
Re: [HELP] war problem gangs - by HY - 10.01.2015, 18:25
Re: [HELP] war problem gangs - by Luca12 - 10.01.2015, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)