Help me with Relic
#1

Hello who know how to make RELIC, relic is if i have relic if kill player get 1000 Money if dont have it get 500 Money.Help Me
Reply
#2

Well, make a way for people to pickup/drop the relic and do the following
pawn Код:
new HasRelic[MAX_PLAYERS]; //top of code somewhere
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(HasRelic[playerid] == 1){
        GivePlayerMoney(killerid, 1000);
    } else {
        GivePlayerMoney(killerid, 500);
    }
}
You could have a pickup as the relic, and on player death, if you hyave the relic, a pickup spawns at the location where the player died.
Reply
#3

Thnaks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)