19.04.2012, 16:20
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.
- 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.