[Tutorial] Kill list+ 1+ score and 1000$ dollars system while killing some one
#1

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)