[HELP] hitman system please
#8

Then first of all, do a ver called new Hmoney[MAX_PLAYERS]; and new Hit[MAX_PLAYERS];
now in the hit command : set the Hmoney[theid] to the money of the requested money and set hit[theid] to : hit[theid] = 1
now onplayerdeath
pawn Код:
if(hit[playerid] == 1)
{
hit[playerid] = 0
GivePlayerMoney(killerid,Hmoney[playerid]);
new string[200];
format(string,sizeof(string),"%s killed %s and got the money of the bounty:%d",killerid,playerid,Hmoney[playerid]);
SendClientMessageToAll(-1,string);
Hmoney[playerid] = 0;}
Reply


Messages In This Thread
[HELP] hitman system please - by Luca12 - 31.05.2014, 16:18
Re: [HELP] hitman system please - by Rittik - 31.05.2014, 16:30
Re: [HELP] hitman system please - by Eth - 31.05.2014, 16:32
Re: [HELP] hitman system please - by Rittik - 31.05.2014, 16:36
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 17:17
Re: [HELP] hitman system please - by Eth - 31.05.2014, 18:41
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 19:16
Re: [HELP] hitman system please - by Eth - 31.05.2014, 19:22
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)