SA-MP Forums Archive
sunt points - 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: sunt points (/showthread.php?tid=84111)



sunt points - _ReloadeD_ - 28.06.2009

how i do that who do a stunt he get XP instead money


Re: sunt points - Grim_ - 28.06.2009

You are unable to tell when a player does a stunt bonus, so you can't.


Re: sunt points - _ReloadeD_ - 28.06.2009

Quote:
Originally Posted by Swift_
You are unable to tell when a player does a stunt bonus, so you can't.
and i can to do when the player get the money from the stunt he get a XP?


Re: sunt points - Grim_ - 28.06.2009

I suppose you could do a check for the player when they receive money thats not scripted in, give them points.


Re: sunt points - _ReloadeD_ - 28.06.2009

Quote:
Originally Posted by Swift_
I suppose you could do a check for the player when they receive money thats not scripted in, give them points.
and how i do it?


Re: sunt points - Grim_ - 28.06.2009

Make a timer with a variable holding the players money. If the money is greater than the money he had before, and it's not scripted money, give him a point.


Re: sunt points - _ReloadeD_ - 28.06.2009

Quote:
Originally Posted by Swift_
Make a timer with a variable holding the players money. If the money is greater than the money he had before, and it's not scripted money, give him a point.
what is the fection of the scripting money?


Re: sunt points - Grim_ - 28.06.2009

Like everytime you give a player money through the script, make a variable holding the amount you give them. And like subtract that amount from the player in the timer.