PHP Code:
#include <amxmodx>
#include <amxmisc>
new bool:aa, szCommand [ 128 ]
public plugin_init()
{
register_plugin("SVAA", "1.0", "AM")
register_clcmd("say /aa", "clcmdAA", 0)
}
public clcmdAA ( id ) {
aa = !aa
formatex ( szCommand, sizeof szCommand -1, "sv_airaccelerate %i", aa ? 100 : 5 )
server_cmd ( szCommand )
client_print(0, print_chat, "sv_airaccelerate %i", aa ? 100 : 5 )
how could i reset this? like every round the first time you type /aa it wil do 5.
Because I have something that every newround does it set to 100. And if the last thing i typed the round before was to set it to 5. Then at the new round it will go to 100. Tho it is already 100. So reset it somehow evey new round. Is that thing possible?