SA-MP Forums Archive
[Help] Setting Default Money - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Setting Default Money (/showthread.php?tid=553122)



[Help] Setting Default Money - Arxalan - 28.12.2014

Hello , i want to know how to set player default money after registration . I want to give 5k to every player when he register .


Re: [Help] Setting Default Money - Ryz - 28.12.2014

just add amount where account register example of mine..

pawn Код:
INI_WriteInt(ACCOUNT, "Cash", 5000);



Re: [Help] Setting Default Money - Sledgehammer - 28.12.2014

https://sampwiki.blast.hk/wiki/Function:GivePlayerMoney
- Use that function to give player money.


Re: [Help] Setting Default Money - Arxalan - 28.12.2014

I made the registration system from the following tutorial . Now where can i change the default money

https://sampforum.blast.hk/showthread.php?tid=273088


Re: [Help] Setting Default Money - gdkparadox - 28.12.2014

Quote:
Originally Posted by Arxalan
Посмотреть сообщение
I made the registration system from the following tutorial . Now where can i change the default money

https://sampforum.blast.hk/showthread.php?tid=273088
I guess, under
Код:
public OnDialogResponse
change
Код:
INI_WriteInt(File,"Cash",0);
to
Код:
INI_WriteInt(File,"Cash",10000);
for example. (as far as I've seen)


Re: [Help] Setting Default Money - nezo2001 - 28.12.2014

Man i made the same login system

Type under OnDialogResponse in the register dialog

PHP код:
GivePlayerMoney(playerid5000); 
That is all