|
Author
|
Message
|
|
Member
|

04-13-2017
, 03:52
Boolean not changing
|
#1
|
why is this boolean not changing on new round?
how to fix it?
Spoiler
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Round"
#define VERSION "1.0"
#define AUTHOR "Admin"
new bool:g_Newround[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /bool", "cmdBool")
register_event("HLTV", "NewRound", "a", "1=0", "2=0")
}
public client_authorized(id)
{
g_Newround[id] = false
}
public NewRound(id)
{
client_print(id, print_chat, "NewRound")
g_Newround[id] = true
}
public cmdBool(id)
{
if(!g_Newround[id])
{
client_print(id, print_chat, "false")
}
else
{
client_print(id, print_chat, "true")
}
return PLUGIN_CONTINUE
}
|
|
|
|