[Include] [INC] Easy User Menu (EUM) v0.4 (Stable)
#1

Informations
Easy User Menu is a simple set of functions that can create an player interactive message box (using textdraw methods). Only problem is that it can work only in gamemodes, but not in filterscripts. There is a function that gets called (callback) every time player provides a valid option if available. What I want to say is that you can create normal messagees and player interactive messages.

Functions
pawn Код:
EUM_ShowForPlayer(playerid, id, title[], text[], optionRange = 0);
EUM_ShowForAll(id, title[], text[], optionRange = 0);
EUM_DestroyForPlayer(playerid);
EUM_DestroyForAll();
EUM_Indentify(playerid, id);
Callbacks
pawn Код:
OnPlayerResponse(playerid, option); // Where chosen is option that player provided
Example of normal message
Simple menu
pawn Код:
EUM_ShowForPlayer(playerid, 1, "My title", "My text");
Player interactive menu
pawn Код:
EUM_ShowForPlayer(playerid, 2, "Character", "Are you male or female?~n~1. Male~n~2. Female", 2);
// You can see that latest parameter equals '2'. It means whats the maximum option
Now we need to put some 'effect' on it
pawn Код:
public OnPlayerResponse(playerid, option)
{
    if(EUM_Indentify(playerid, 2)) // if EUM id is 2
    {
        switch(option)
        {
            case 1: SendClientMessage(playerid, 0xFFFFFFFF, "Ok, so you are male.");
            case 2: SendClientMessage(playerid, 0xFFFFFFFF, "Ok, so you are female.");
        }
    }
    // EUM_DestroyForPlayer(playerid); // Uncomment this line if you want to close the menu after player chooses the option
    return 1;
}
Download
[INC] Easy User Menu 0.4 Package (Solidfiles.com)

Screenshots
Note that this are screenshots from v0.2a, but theres nothing changed in textdraw style, just scripting.




Reply


Messages In This Thread
[INC] Easy User Menu (EUM) v0.4 (Stable) - by Luka P. - 11.06.2010, 16:20
Re: [INC] Easy User Menu (EUM) v0.2a - by aircombat - 11.06.2010, 17:32
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 11.06.2010, 17:42
Re: [INC] Easy User Menu (EUM) v0.2a - by JesterX - 11.06.2010, 17:45
Re: [INC] Easy User Menu (EUM) v0.2a - by vyper - 11.06.2010, 17:46
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 11.06.2010, 18:05
Re: [INC] Easy User Menu (EUM) v0.2a - by [03]Garsino - 11.06.2010, 18:17
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 11.06.2010, 18:23
Re: [INC] Easy User Menu (EUM) v0.2a - by asdfgh98 - 11.06.2010, 19:20
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 11.06.2010, 20:36
Re: [INC] Easy User Menu (EUM) v0.2a - by Andy_McKinley - 11.06.2010, 20:39
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 11.06.2010, 20:39
Re: [INC] Easy User Menu (EUM) v0.2a - by king s dm - 11.06.2010, 22:59
Re: [INC] Easy User Menu (EUM) v0.2a - by Dongotti - 12.06.2010, 09:15
Re: [INC] Easy User Menu (EUM) v0.2a - by ViruZZzZ_ChiLLL - 12.06.2010, 09:19
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 10:00
Re: [INC] Easy User Menu (EUM) v0.2a - by Baff - 12.06.2010, 10:08
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 10:11
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 10:45
Re: [INC] Easy User Menu (EUM) v0.2a - by DarkPower - 12.06.2010, 11:53
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 12:45
Re: [INC] Easy User Menu (EUM) v0.2a - by DarkPower - 12.06.2010, 13:06
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 13:33
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 14:12
Re: [INC] Easy User Menu (EUM) v0.2a - by armyoftwo - 12.06.2010, 15:05
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 12.06.2010, 15:16
Re: [INC] Easy User Menu (EUM) v0.2a - by MrDeath537 - 12.06.2010, 22:01
Re: [INC] Easy User Menu (EUM) v0.2a - by Luka P. - 13.06.2010, 08:24
Re: [INC] Easy User Menu (EUM) v0.2a - by ][Danee][ - 13.06.2010, 08:34
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 13.06.2010, 18:56
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by armyoftwo - 15.06.2010, 21:21
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 16.06.2010, 12:39
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by HydraX - 16.06.2010, 14:33
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 16.06.2010, 14:53
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by HydraX - 16.06.2010, 14:55
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by armyoftwo - 16.06.2010, 15:06
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 16.06.2010, 15:17
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by HydraX - 16.06.2010, 15:20
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by armyoftwo - 16.06.2010, 15:22
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by HydraX - 16.06.2010, 15:23
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 16.06.2010, 15:37
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by HydraX - 16.06.2010, 15:40
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 16.06.2010, 15:44
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by HydraX - 16.06.2010, 15:46
Re: [INC] Easy User Menu (EUM) v0.3 (Improved) - by Luka P. - 16.06.2010, 18:43
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by sarius159 - 16.06.2010, 19:04
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 16.06.2010, 19:28
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 16.06.2010, 19:33
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 16.06.2010, 19:38
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 16.06.2010, 20:50
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 16.06.2010, 21:12
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 16.06.2010, 21:15
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 16.06.2010, 21:20
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 16.06.2010, 21:26
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 16.06.2010, 21:30
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by armyoftwo - 17.06.2010, 08:37
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by bpeterson - 17.06.2010, 09:57
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 17.06.2010, 12:42
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 17.06.2010, 14:31
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 17.06.2010, 14:49
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by bpeterson - 17.06.2010, 19:47
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 18.06.2010, 02:31
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Niixie - 18.06.2010, 05:47
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by armyoftwo - 18.06.2010, 06:54
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 18.06.2010, 08:22
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by armyoftwo - 18.06.2010, 10:57
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by HydraX - 18.06.2010, 14:53
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by Luka P. - 18.06.2010, 19:57
Re: [INC] Easy User Menu (EUM) v0.4 (Fix & Huge Upgrade) - by armyoftwo - 19.06.2010, 08:19
Re: [INC] Easy User Menu (EUM) v0.4 (Stable) - by Luka P. - 24.06.2010, 20:36
AW: [INC] Easy User Menu (EUM) v0.4 (Stable) - by Trooper[Y] - 11.12.2010, 20:39
Re: [INC] Easy User Menu (EUM) v0.4 (Stable) - by black_dota - 23.01.2011, 20:29
Re: [INC] Easy User Menu (EUM) v0.4 (Stable) - by HyperZ - 24.01.2011, 14:36
Re: [INC] Easy User Menu (EUM) v0.4 (Stable) - by Fool - 05.02.2011, 13:00
Re: [INC] Easy User Menu (EUM) v0.4 (Stable) - by Mean - 05.02.2011, 22:54
Re: AW: [INC] Easy User Menu (EUM) v0.4 (Stable) - by Luka P. - 21.05.2011, 18:50

Forum Jump:


Users browsing this thread: 4 Guest(s)