SA-MP Forums Archive
Get cash after killing someone - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get cash after killing someone (/showthread.php?tid=347858)



Get cash after killing someone - Subwoofer - 03.06.2012

Does anyone know such a filterscript or can make one? I realy need it because i have basically DM server and there is weapon shop filterscript wich uses money so i need to earn money with killing. Can anyone help me with it?


Re: Get cash after killing someone - [ABK]Antonio - 03.06.2012

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) GivePlayerMoney(killerid, 1000);
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerDeath


Re: Get cash after killing someone - Subwoofer - 03.06.2012

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID) GivePlayerMoney(killerid, 1000);
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerDeath
right now i dont have anyone to test it with me but as soon i get someone to test it with me and see if it works you get Rep+


Re: Get cash after killing someone - Sandiel - 03.06.2012

Quote:
Originally Posted by Subwoofer
Посмотреть сообщение
right now i dont have anyone to test it with me but as soon i get someone to test it with me and see if it works you get Rep+
You can use NPC's.... (BOTS)


Re: Get cash after killing someone - milanosie - 03.06.2012

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
You can use NPC's.... (BOTS)
Too complicated for such a simple function,


Re: Get cash after killing someone - Subwoofer - 03.06.2012

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
You can use NPC's.... (BOTS)
How to add them?