Help me for kill player get cash/score and Commands Minigames
#4

For random money/score:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
        SetPlayerMoney(killerid, GetPlayerMoney(killerid) + random(5000)), SetPlayerScore(killerid, GetPlayerScore(killerid) + random(1000));
}
The killer will get random money from 0 - 5000$ and score from 0 - 1000.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)