28.08.2010, 10:09
(
Last edited by Mean; 28/08/2010 at 08:38 PM.
)
This is kill list system+ 1+ score while killing+ 1000$ dollars while killing, and you loose 500 dollars for dying
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(killerid,COLOR_GREEN, "You have killed someone, you got +$1000 and 1 Score!");// You can replace "someone" with stream
GivePlayerMoney(killerid,1000);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
SendClientMessage(playerid,COLOR_BRIGHTRED, "You died, you lost $500");
GivePlayerMoney(playerid,-500);
if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
}
else
{
SendDeathMessage(killerid,playerid,reason);
}
return 1;
}