15.05.2012, 17:48
How can I disable it because I don't want it there so the player can earn money on other ways than killing...?
Also, can you make a pawn code that the killer of a player will recieve 10 score and 1,500 money?
|
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) + 10); // +10 score
GivePlayerMoney(killerid, 1500); // cash 1500
}
return 1;
}
GivePlayerMoney(killerid,1500);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 10);
public OnGameModeInit()
{
EnableStuntBonusForAll(0); // 0 = off | 1 = On
return 1;
}