Quote:
Originally Posted by Bugsy
You can also consider the xvar natives
PHP Code:
g_BulletDmgPtr = get_cvar_pointer( "bullet_dmg" );
if ( get_pcvar_num( g_BulletDmgPtr ) == 1 )
{
//do something
}
|
where am i wrong please help..
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
new g_racePtr
public plugin_init() {
register_clcmd("say /mode", "SelectStyle", ADMIN_BAN)
g_racePtr = get_cvar_pointer( "fl_on" );
}
public SelectStyle(id)
{
menu created
}
public menu_handle(id)
{
switch(item) {
case 0: {
if ( get_pcvar_num( g_racePtr ) == 1 )
{
set_hudmessage(0, 255, 255, -1.0, 0.0, 0, 1.0, 7.0, 0.1, 0.2)
show_hudmessage(id, "Race is currently on kindly stop the race or wait for it to finish")
}
//statments to be executed
}