[Tutorial] [TUT] Pocketmoney on spawn.
#1

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.
Reply
#2

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

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.
Reply
#4

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.
Reply
#5

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
Reply
#6

Why you have posted this LOL?
Reply
#7

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
Reply
#8

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
Reply
#9

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)