Help (scripting player Money)
#1

Does anyone know or have a script to change the players money..

EXAMPLE : Player joins the server for the 1st time they start with 10 thousand dollars. and if they die they lose 100 dollars....Becuase the script im working on they just keep spawning with 50000 even after they die.
What im looking for is where their money does not reset everytime they die.

AnyHelp?[Because i have no idea how to do this.]
I dont know if i explained this well but hopefully someone can help me.
Reply
#2

If it keeps reseting there cash look for SetPlayerCash. If its under onplayerspawn then take it off



For death
pawn Код:
public OnPlayerDeath(playerid)
{
    GivePlayerCash(playerid,-100);
    return 1;
}
Reply
#3

It is proably an anti-cheat system and you have to find where it is checking to see the money. Make sure that you remove their money the way the anti-cheat system does. Look under OnPlayerUpdate, OnPlayerSpawn, or and other similar callbacks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)