Posts: 22
Threads: 5
Joined: May 2011
Reputation:
0
Hey i want to know how can i not make a player lose money on death if they used /kill or /changeteam(a cmd we made to put players back in class selection) If a player kills there self i dont want them to lose money how can i make that happen?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
I confused a bit. Do you mean everytime someone dies normally to loose his money, but if he type a command for example /kill not to loose the money. If I understand correct then you can make a global variable and everytime players type the command you want to use set the variable to 1 and check OnPlayerDeath Callback if the player who died had the variable not equal to 1 then GivePlayerMoney the amount you want.
Edit: Person above me was faster!
Posts: 22
Threads: 5
Joined: May 2011
Reputation:
0
But thanks anyways it helped