Need some help with this
#1

Hello Everyone,

I have downloaded a basic script to script more on it.
I need one thing, im using lLuxAdmin1.6 and just a normal freeroam script.
I want that if someone is killing another player then he will receive +1 score and 5K cash.
But i dont how how and where to change this.
Im just a beginner so thanks.
Reply
#2

Under your OnPlayerDeath(playerid, killerid) add GivePlayerMoney(playerid, 5000) and about the score you don't need it because it already +1's your score.
Reply
#3

By me it isnt adding my score
Reply
#4

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
GivePlayerMoney(killerid,5000);
    
GivePlayerMoney(playerid,GetPlayerMoney(playerid)-1000);
    
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)