Raised This Month: $ Target: $400
 0% 

Need small help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
code
Member
Join Date: Nov 2011
Old 03-11-2014 , 09:05   Re: Need small help
Reply With Quote #7

Another problem when Simon dies he won't disappear from HUD how to fix that
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "Simon"
#define VERSION "1.0"
#define AUTHOR "Frego"

new bool:Simon
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /simon","simoncmd")
    register_logevent("ResetSimon",2,"1=Round_End")
    register_event("TextMsg", "ResetSimon", "a", "2&#Game_C", "2&#Game_w")
}

public simoncmd(id)
{
    if(get_user_team(id) != 2)
        ColorChat(id,GREEN,"You are T ;).")
    if(!Simon)
    {
        new name[32]
        get_user_name(id,name,31)
        set_hudmessage( 255, 204, 0, 1.0, 0.05, 0, 0.1, 900.0, 0.1, 0.1, 4 );
        show_hudmessage( 0, "%s - is Simon.", name );
        Simon = true
    }
    else
        ColorChat(id,GREEN,"There is already simon!")
    return PLUGIN_HANDLED_MAIN
}

public ResetSimon()
    Simon = false

Last edited by code; 03-11-2014 at 09:08.
code 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 05:55.


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