Posts: 151
Threads: 24
Joined: Apr 2013
Player register 10k starting cash
How do i put this? I cant CTRL + F the money for register right because it is set to 0.
Posts: 288
Threads: 42
Joined: Jun 2009
Reputation:
0
GivePlayerMoney(playerid, 10000);
Posts: 151
Threads: 24
Joined: Apr 2013
umm..i am using Los santos script, by ffaff
Posts: 807
Threads: 10
Joined: Jan 2013
Reputation:
0
find the register command. stick in GivePlayerMoney(playerid,1000);
Posts: 151
Threads: 24
Joined: Apr 2013
Quote:
Originally Posted by DobbysGamertag
find the register command. stick in GivePlayerMoney(playerid,1000);
|
But 100 logins = 10000 (10k)..
i only want it when they register.
Posts: 535
Threads: 36
Joined: Oct 2009
Reputation:
0
Add GivePlayerMoney when they use /register.
Posts: 591
Threads: 70
Joined: Jun 2009
Reputation:
0
If you're having a roleplay server or kinda, and there is tutorial/first spawn function you can just add GivePlayerMoney(playerid, 10000); and it will not give them money on every spawn.
Posts: 78
Threads: 17
Joined: Oct 2012
Reputation:
0
Check your enum, There should be pMoney or pCash, anything like that.
Hit CTRL+F, search for the DIALOG_REGISTER or your CMD:Register or /register , however you got it as,
Scroll down til you see the Callback [public Something] that is the one creating the account info, in my script it's NewPlayerData.
find the pMoney / pCash / Money / Cash / whatever, see the original value - can be 800$, 0$, anything.
Set it to the desired amount and in your case it would be 10,000$
In my script:
INI_WriteInt("Money",1000);
I can set it to any, I bet with some time you can too.