26.01.2015, 00:18
ColorPicker
Version: 1.1Autor: Patryk "Maku" Makowski
Description:
With this include you can shake colors in game.
Screenshot:
* this version is fully english.
Functions:
Код:
native ShowPlayerColorPicker(playerid, pickerid, bool:showalpha = false, bool:showcancel = true); native HidePlayerColorPicker(playerid, bool:call_callback = false, call_response = 0); native native OnColorPickerResponse(playerid, pickerid, color, response);
- playerid - Player ID
- pickerid - Picker ID
- showalpha - Can player change alpha? Boolean
- showcancel - If player can cancel this picker (true) or if player can't cancel, must accept color (false).
- playerid - Player ID
- call_callback - if callback OnColorPickerResponse is to be performed
- call_response - if callback is true - what response is to be send?
- playerid - Player ID
- pickerid - Picker ID
- color - Created color
- response - 0 - cancel, 1 - accept
Код:
#define COLOR_PICKER_DIALOG_OPTION 6 #define COLOR_PICKER_DIALOG_SHOW 7
16 global textdraws
5 player textdraws
Download & Example:
Example - http://pastebin.com/AmS5cNnc
v1.1 - http://pastebin.com/6Zr0FAgn
--
I'm sorry for my bad english. I hope that description is understandable.