SA-MP Forums Archive
Server Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Help (/showthread.php?tid=338102)



Server Help - [SM]BaseBoyAdam - 28.04.2012

Greetings, I'm running a SA-MP server and recently I got bored and have spent the last few months wondering how to remove some code I cant find.

When users connect it auto gives them $7500 (but if they leave with money on them it will reset to $7500) does anyone know how to remove this or what the code could look like?

Cheers


Re: Server Help - ikbenremco - 30.04.2012

Add this under onplayerconnect :

Код:
GivePlayerMoney(playerid, amount);
or
Код:
SetPlayerMoney(playerid, amount);
And under onplayerdisconnect

Код:
SetPlayerMoney(playerid, 7500);