Stunt System
#1

How can I disable it because I don't want it there so the player can earn money on other ways than killing...?
Reply
#2

Also, can you make a pawn code that the killer of a player will recieve 10 score and 1,500 money?
Reply
#3

Quote:
Originally Posted by HighPitchedVoice
Посмотреть сообщение
Also, can you make a pawn code that the killer of a player will recieve 10 score and 1,500 money?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        SetPlayerScore(killerid, GetPlayerScore(killerid) + 10); // +10 score
        GivePlayerMoney(killerid, 1500); // cash 1500
    }
    return 1;
}
Here's that code.

-FalconX
Reply
#4

Well you'd need to post the script here so that we could remove it. And as for what you requested:

pawn Код:
GivePlayerMoney(killerid,1500);
And:

pawn Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 10);
Reply
#5

Why INVALID_PLAYER_ID?
Reply
#6

Quote:
Originally Posted by HighPitchedVoice
Посмотреть сообщение
Why INVALID_PLAYER_ID?
Apparently that doesn't really needed, it checks if the killer id is not invalid and if it's valid it continues it's functions like giving money and scores.

And for disabling the stunt bonus:-

pawn Код:
public OnGameModeInit()
{
    EnableStuntBonusForAll(0); // 0 = off | 1 = On
    return 1;
}
-FalconX
Reply
#7

Quote:
Originally Posted by HighPitchedVoice
Посмотреть сообщение
How can I disable it because I don't want it there so the player can earn money on other ways than killing...?
Put this on GameModeInit()
pawn Код:
EnableStuntBonusForAll(0);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)