HITMAN JOB.
#4

Quote:
Originally Posted by ThunderX
Посмотреть сообщение
thank you


but i found some error on your pawn
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(Hit[playerid] >=5000 && killerid != INVALID_PLAYER_ID)
{
new str[200];
format(str,sizeof(str),"%s completed a hit on %s. Amount - %i $",GetName(killerid),GetName(playerid),Hit[playerid]);
SendClientMessageToAll(-1,str);
GivePlayerMoney(killerid, Hit[playerid]);
Hit[playerid] = 0;
}
return 1;
}
Just a ']'

And also add this stock

pawn Код:
stock GetName(playerid)
{
    new name[24];
    GetPlayerName(playerid,name,sizeof(name));
    return name;
}
Reply


Messages In This Thread
HITMAN JOB. - by ThunderX - 04.11.2014, 06:13
Re: HITMAN JOB. - by BroZeus - 04.11.2014, 06:50
Re: HITMAN JOB. - by ThunderX - 04.11.2014, 07:59
Re: HITMAN JOB. - by DavidBilla - 04.11.2014, 08:21

Forum Jump:


Users browsing this thread: 2 Guest(s)