Giving a Player money upon killing another player - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Giving a Player money upon killing another player (
/showthread.php?tid=106559)
Giving a Player money upon killing another player -
MrXavier - 03.11.2009
This is a 2 part question
How can I give a player money when they kill another player,
and how can I have the small text showing who has died, and how.
Thanks.
Re: Giving a Player money upon killing another player -
retart441 - 04.11.2009
Im gonna be sorry and have to say are you that lazy, that you can't go to *******............
When I first started scripting I saw over 100 tutorials with it.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid, 500);
return 1;
}
I didn't know if you wanted the text to show to everyone or just the person who died. So I didn't include it.
Re: Giving a Player money upon killing another player -
dice7 - 04.11.2009
pawn Код:
new text[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(text, 128, "%s had been killed", name);
SendClientMessage(playerid, color, text);