Award cash for each kill
#1

Hi I'd like to award $2,000 for every kill of opposing team members.

How can I achieve this?
Reply
#2

Did you even check SA-MP wiki? I guess not.

https://sampwiki.blast.hk/wiki/OnPlayerDeath
Reply
#3

Nah actually I didn't think it would be in there.

Apparently I was wrong.

Thanks
Reply
#4

Why wouldn't it be there!, EVERYTHING from the SAMP default is there. It may lack some functions from plugins but they are included on the download forums.
Reply
#5

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    if(GetPlayerTeam(playerid) != GetPlayerTeam(killerid))
    {
        GivePlayerMoney(killerid,2000);
    }
    return 1;
}
Here.
Reply
#6

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    if(GetPlayerTeam(playerid) != GetPlayerTeam(killerid))
    {
        GivePlayerMoney(killerid,2000);
    }
    return 1;
}
Here.
Awesome. Thanks for your help, Dimi.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)