hunted system
#1

I made hunted system for my server , for any one dun know what is the hunted system : any admin sets some one as a hunted and who kill that hunted will get auto prize, i made the auto prize in OnPlayerDeath callback like that:
pawn Код:
f(ServerHunted == 1 && PlayerInfo[playerid][Hunted] == 1)
{
                   format(string,sizeof(string)," %s has Killed the Hunted %s and got his prize.",RPN(killerid),RPN(playerid));
           SendClientMessageToAll(TRANSPARENT_PURPLE,string);
           format(string,sizeof(string),"You have killed the hunted %s",RPN(playerid));
           SendClientMessage(killerid,COLOR_GREY,string);
           ServerHunted = 0;
           SetPlayerColor(playerid,TRANSPARENT_WHITE);
}
the problem is:
if the hunted died without no one killed him it send the message without name, to recap I wanna make thing if the hunted died without no one killed him send message to all that: no winner, hunted died.
thank you
Reply


Messages In This Thread
hunted system - by AhmedMohamed - 28.03.2014, 21:41
Re: hunted system - by AhmedMohamed - 28.03.2014, 21:48
Re: hunted system - by Konstantinos - 28.03.2014, 21:52
Re: hunted system - by AhmedMohamed - 28.03.2014, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)