Raised This Month: $ Target: $400
 0% 

[SOLVED] Different method for hudmessage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 07-26-2013 , 19:20   Re: Different method for hudmessage
Reply With Quote #3

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new const Float:g_flPositions[][] = {
    
// Y, X
    
0.25, -1.0 },
    { 
0.50, -1.0 },
    { 
0.75, -1.0 }
}

new const 
Float:HOLD_TIME 10.0
new const Float:FADE_IN_TIME 0.1
new const Float:FADE_OUT_TIME 0.1

enum _
:COLORS
{
    
255,
    
255,
    
0
}

new 
g_iPosCount
new g_iCommand[33]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
register_clcmd("say /command""CmdCommand")
    
    
g_iPosCount sizeof(g_flPositions)
}

public 
client_connect(id)
{
    
g_iCommand[id] = 0
}

public 
CmdCommand(id)
{
    
set_hudmessage(RGBg_flPositions[g_iCommand[id]][1], g_flPositions[g_iCommand[id]][0], 00.0HOLD_TIMEFADE_IN_TIMEFADE_OUT_TIME, -1)
    
show_hudmessage(id"Message :)")
    
    
g_iCommand[id]++
    
    if(
g_iCommand[id] == g_iPosCount)
    {
        
g_iCommand[id] = 0
    
}

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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 06:29.


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