[NEED]Bonus Code FS [+ rep] - 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)
+--- Thread: [NEED]Bonus Code FS [+ rep] (
/showthread.php?tid=335723)
[NEED]Bonus Code FS [+ rep] -
feartonyb - 19.04.2012
I need system which include this:
If I am RCON admin and just I can add a bonus (reward) code and when I give it to someone when he type /bonuscode and open a textdraw (similiar like login) and he should write the code I gave him and if it's correct he get something (score,money...)
Please,I need it bad and sorry for my bad english
Re: [NEED]Bonus Code FS [+ rep] -
TheLazySloth - 19.04.2012
You will need to know how to use:
-
OnPlayerCommandText
- - This is where you'll put the two commands.
-
strcmp
- - This is where you'll check the commands, it's also where you'll check the "bonus code".
-
sscanf
- - Used for admins to type the playerid and the bonus code for the player.
-
IsPlayerAdmin
- - Self explanitory.
-
ShowPlayerDialog
- - This is where you will either display DIALOG_STYLE_INPUT or DIALOG_STYLE_PASSWORD for the player to type in the "bonus code".
-
OnPlayerDialogResponse
- - This is where you'll use strcmp to check the bonus code the player type is correct.
And that's about it, give me a few minutes and I'll have it done for you if you're too lazy to learn Pawn.
Re: [NEED]Bonus Code FS [+ rep] -
feartonyb - 22.04.2012
Yea im to lazy

can you make it please and send me a link..

Thanks
Re: [NEED]Bonus Code FS [+ rep] -
seanny - 22.04.2012
Quote:
Originally Posted by feartonyb
Yea im to lazy  can you make it please and send me a link..  Thanks
|
We ain't spoon feeding you, learn yourself.