Giving a Player money upon killing another player
#1

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.
Reply
#2

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.
Reply
#3

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)