Raised This Month: $ Target: $400
 0% 

Need small help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
code
Member
Join Date: Nov 2011
Old 03-10-2014 , 16:33   Need small help
Reply With Quote #1

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

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

#define PLUGIN "I'm Simon"
#define VERSION "1.0"
#define AUTHOR "SpeeD"

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 not allowed to be Simon.")
if(!Simon)
{
new name[32]
get_user_name(id,name,31)
set_hudmessage( 0, 100, 255, 1.0, 0.05, 0, 0.1, 1.0, 0.1, 0.1, 4 );
show_hudmessage( 0, "%s - Is now simon.", name );
Simon = true
return PLUGIN_HANDLED;
}
else
ColorChat(id,GREEN,"There is already Simon!")
return PLUGIN_HANDLED
}

public ResetSimon()
Simon = false
Hud message disappears how i can make so it stays until next round

Please help i dont ask much

Last edited by YamiKaitou; 03-10-2014 at 17:50.
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