SA-MP Forums Archive
[Tutorial] [TUT] Pocketmoney on spawn. - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] [TUT] Pocketmoney on spawn. (/showthread.php?tid=108176)



[TUT] Pocketmoney on spawn. - Sal_Kings - 12.11.2009

Before we start, this is a tutorial for extremely NEW SCRIPTERS. Me my self, i am a very new scripter. I am learning slowly, so please don't bother wasting your time saying "retarded and easy" or something like that.
K thx, bai.



Ok so, welcome to my tutorial on how to give someone what we will call "pocket money" when they spawn. So when they die and spawn or select there skin and spawn they will recive this so called "pocket money".

1 ) Step one, you must tell PAWNO what is "pocketmoney". So add this at the top of your script.

Code:
#define PocketMoney 50000
^^ This code will let pawno know, pocketmoney is 50000 dollars. Change the number if you want more/less money to be given on spawn.

2 ) Step two, put this under "onplayerspawn".
Code:
GivePlayerMoney(playerid, PocketMoney);
^^ This will tell PAWNO to give the player the "pocketmoney".

Easy huh?
Keep a look out for more beginner tutorials soon.



Re: [TUT] Pocketmoney on spawn. - [XST]O_x - 12.11.2009

Wouldn't it be easier to put GivePlayerMoney(playerid,50000); under OnPlayerSpawn?


Re: [TUT] Pocketmoney on spawn. - JonyAvati - 12.11.2009

Quote:
Originally Posted by ►ϻozilla Fir3foж◄
Wouldn't it be easier to put GivePlayerMoney(playerid,50000); under OnPlayerSpawn?
Yes but like this, they can easy modify the ammount at the top of the script.


Re: [TUT] Pocketmoney on spawn. - retart441 - 12.11.2009

It's not anything against you or this tut, but if your going to post over 3 topics with stupid 2 lines of code and call that a Tutorial. Just post 1 topic with a certain thing.


Re: [TUT] Pocketmoney on spawn. - Peter_Corneile - 12.11.2009

Quote:
Originally Posted by retart441
It's not anything against you or this tut, but if your going to post over 3 topics with stupid 2 lines of code and call that a Tutorial. Just post 1 topic with a certain thing.
Agreed


Re: [TUT] Pocketmoney on spawn. - Taz86 - 12.11.2009

Why you have posted this LOL?


Re: [TUT] Pocketmoney on spawn. - Lynax - 12.11.2009

Quote:
Originally Posted by Taz86[CES Owner
]
Why you have posted this LOL?
For newbies (Like me )
But we have a problem.. I know this
Thanks Vish


Re: [TUT] Pocketmoney on spawn. - SergiKirov - 13.11.2009

Quote:

It's not anything against you or this tut, but if your going to post over 3 topics with stupid 2 lines of code and call that a Tutorial. Just post 1 topic with a certain thing.

I agree with what your trying to do... but you need to add more tutorials into one post instead of hundreds of small 2 line code posts


Re: [TUT] Pocketmoney on spawn. - Peter_Corneile - 13.11.2009

I am waiting for a reply from the author of this topic.........


Re: [TUT] Pocketmoney on spawn. - [DK]JaloNik - 14.07.2010

Quote:
Originally Posted by [XST]O_x
View Post
Wouldn't it be easier to put GivePlayerMoney(playerid,50000); under OnPlayerSpawn?
Yeah, but now he's just showing off HOW you can do such things with defining, and I think it's quite good.

@ Topic:

RETARDED AND EASY, lol. - Nah..
I think it's very good you're making this tutorial, as a new scripter it can be hard to see how to do such things.
But this shows nicely, what you e.g. can use the "new" to. Great tutorial!