02.08.2009, 18:03
This dont work i want it so that if the president is killed (not TEAM_TERR) i want it to say he was killed in a accident but it dont work ![Sad](images/smilies/sad.gif)
![Sad](images/smilies/sad.gif)
pawn Код:
if(gTeam[playerid] == TEAM_PRES)
{
if(TEAMPRES == playerid)
{
if(gTeam[killerid] != TEAM_TERR)
{
new string[156];
new pname[30];
GetPlayerName(playerid,pname,30);
format(string, sizeof(string),"%s(%d) Is No Longer President",pname,playerid);
SendClientMessageToAll(COLOR_TEAMYELLOW, string);
TEAMPRES = playerid;
GameTextForAll("~b~The President Has Been Killed In An Accident!", 8000, 5);
}
}
return 1;
}