Raised This Month: $ Target: $400
 0% 

How to make this Hud work =O


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bobby3
Member
Join Date: Apr 2011
Old 05-07-2011 , 07:10   How to make this Hud work =O
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Some Hud message for PPG that actually work =D"
#define VERSION "9999999999.0"
#define AUTHOR "Mecca"
new players[32] = true;
new 
num
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
get_players(players,num)
 
set_task(10.0,"hudmessage",69,"",0,"b");
 
register_clcmd("say /ajuda","helpon");
 
register_clcmd("say /ajudaoff","helpoff");
}
public 
hudmessage(id)
{
 
          if(
players[id]){
 
set_hudmessage(57199710.450.8206.012.0)
 
show_hudmessage(0"Message!")
        }
}
 
}
client_connect(id)
{
 
players[id] = true;
}
client_disconnect(id)
{
 
players[id] = false;
}
public 
helpon(id)
{
 
players[id] = true;
}
public 
helpoff(id)
{
 
players[id] = false;

Imtrying make a hud menu where shows a menu to all players when they enter the server. They can turn on the menu and off by using /helpon and helpoff. Unforgently i cant see the menu, probaly its about the ID crap and so I need help =S
bobby3 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode