View Single Post
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 04-09-2010 , 23:06   Re: Structure HUD [HELP]
Reply With Quote #12

fysiks Try to make the code, I have advance the code But it has errors:

Look this is the code:

PHP Code:
public votemap_handle(idmenuitem)
{
    if( 
item ) return PLUGIN_CONTINUE;
 
    static 
accesscallback
    
static cmd[1056], cmdname[1056]

    
cmdname[0] = '^0'
    
cmd[0] = '^0'
 
    
menu_item_getinfo(menuitemaccesscmd,1055,cmdname,1055callback);
    
pug_votemap_votes[str_to_num(cmd)]++;
        
    
set_hudmessage(025500.760.1000.0,30.00.00.03)
    
show_hudmessage(0,"Map votes:")

    
set_hudmessage(2552552250.760.13,00.0,30.00.00.04)
    
show_hudmessage(0,cmdname,1055)

    
client_print(0,print_chat,"",pug_headerLANG_PLAYER"PUG_VOTED_FOR"cmdname);
    
console_print(0,"%s %L",pug_headerLANG_PLAYER"PUG_VOTED_FOR"cmdname);

    
pug_voted[id] = 1;
    if(
pug_should_stopvote() ) votemap_end()
 
    return 
PLUGIN_HANDLED;

The problem is that in the hud when 1 person votes by a map, The map is placed in the hud but when another person votes on the other map, clears the first map elected and placed in the hud the second map...

How can I make that once elected any map is left in the hud and do not disappear from hud until q change the map?

Here is a screenshot with what i want
Attached Thumbnails
Click image for larger version

Name:	maps.JPG
Views:	199
Size:	77.3 KB
ID:	63441  

Last edited by flamin; 04-09-2010 at 23:12.
flamin is offline