18.09.2011, 14:35
(
Последний раз редактировалось i514x; 20.09.2011 в 20:11.
Причина: New Version - v1.3
)
GUIS - GUI Security PAWN Library v1.3
What is GUIS?
GUIS is a few-lines-of-code PAWN Library which fixed a SA-MP bug where players could change their dialogid. In SA-MP dialogid is not server-side nor checked by server-side later. To change your dialogid which is stored in your computer memory you can hack it with programs like Cheat Engine but thats not what this topic is about and I won't write more about it.
So how do I use it?
Well ofcourse firstly you need to download it. Download links are at the bottom of the post. After you get it, put it in pawno/include directory. In your gamemode & filterscripts you add:
pawn Код:
#include <GUIS>
Ofcourse it is. Just put my include before his and you should be ok.

Functions!
pawn Код:
native ShowPlayerDialog_Old(playerid, dialogid, style, caption[], info[], button1[], button2[]);
pawn Код:
native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
pawn Код:
native GetPlayerDialogID(playerid);
pawn Код:
native HidePlayerDialog(dialogid);
Callbacks!
pawn Код:
forward OnPlayerChangeDialogID(playerid, dialogid, newdialogid);
Download!
v1.3
Direct Link (I514X.TK)
v1.2
Direct Link (I514X.TK)
Earlier versions are not to be used due to bugs/crashes and instability.
All credits are in the code!
regards, i514x.