Hi , I need help with setting some cvars . Here is the part of a plugin:
public svm_item_on( iPlayer, iItemIndex, bool:iPluginON) {
Quote:
if( g_iItemIndex == iItemIndex ) {
if(iPluginON) { get_cvar_string
client_cmd(player_id,";alias bhop_auto")
client_print( iPlayer , print_chat, "Bunny Hop je Zapnuty!")
}
else { client_cmd(player_id,"bhop_auto 0")
client_cmd(player_id,";alias bhop_auto")
client_print( iPlayer , print_chat, "Bunny Hop je Vypnuty!")
}
}
//return if needed here
}
|
I want to set the cvar bhop_auto like this : if(iPluginON) bhop_auto 1
and this : else bhop_auto 0
Thanks 4 help
////(My script can be find at the bottom of the plugin)////