SA-MP Forums Archive
[Solved]Startup cash...help! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Solved]Startup cash...help! (/showthread.php?tid=93785)



[Solved]Startup cash...help! - Dongotti - 26.08.2009

Hey,

I need some help with my server. Everytime an non-admin spawns he starts with $0. I want the non-admin to start with $5000. I know this is a VERY VERY noobish question but Iam sorry xD. Thanks for reading this !

Greetz
Dongotti


Re: Startup cash...help! - Dongotti - 28.08.2009

Please reply.....


Re: Startup cash...help! - Dark_Kostas - 28.08.2009

Look THIS and THIS


Re: Startup cash...help! - ded - 28.08.2009

Quote:
Originally Posted by Dongotti
Hey,

I need some help with my server. Everytime an non-admin spawns he starts with $0. I want the non-admin to start with $5000. I know this is a VERY VERY noobish question but Iam sorry xD. Thanks for reading this !

Greetz
Dongotti
Under OnPlayerSpawn

Код:
GivePlayerMoney(playerid,5000);
.. that's it.

You can also do this:

At the top of the script with your defines
Код:
#define SPAWN_MONEY 5000 // change the amount here and it will change it everywhere you have used SPAWN_MONEY
Under OnPlayerSpawn:

Код:
GivePlayerMoney(playerid,SPAWN_MONEY);



Re: Startup cash...help! - Dongotti - 29.08.2009

Thank you !


Re: [Solved]Startup cash...help! - ded - 29.08.2009

Your welcome :P