Code Dont Work
#7

Then it should be like this:

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    if(gTeam[playerid] == TEAM_PRES && gTeam[killerid] != TEAM_TERR)
    {
        new string[128];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pname,sizeof(pname));
        format(string, sizeof(string),"%s(%d) Is No Longer President",pname,playerid);
        SendClientMessageToAll(COLOR_TEAMYELLOW, string);
        GameTextForAll("~b~The President Has Been Killed In An Accident!", 8000, 5);
    }
    return 1;
}
If the dead player is president and the killer is not a terrorist then the message will say he was killed by accident. Untested.
Reply


Messages In This Thread
Code Dont Work - by Kyle - 02.08.2009, 18:03
Re: Code Dont Work - by member - 02.08.2009, 18:10
Re: Code Dont Work - by Kyle - 02.08.2009, 18:25
Re: Code Dont Work - by Marc_307 - 02.08.2009, 18:33
Re: Code Dont Work - by Kyle - 02.08.2009, 18:34
Re: Code Dont Work - by xCoder - 02.08.2009, 18:38
Re: Code Dont Work - by member - 02.08.2009, 18:39
Re: Code Dont Work - by Kyle - 03.08.2009, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)