31.05.2014, 19:22
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
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;}