Raised This Month: $ Target: $400
 0% 

Reset


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alphad
Senior Member
Join Date: Jun 2014
Old 07-17-2014 , 12:32   Reset
Reply With Quote #1

PHP Code:
#include <amxmodx> 
#include <amxmisc> 

new bool:aaszCommand  128 ]

public 
plugin_init() 

    
register_plugin("SVAA""1.0""AM"
    
register_clcmd("say /aa""clcmdAA"0



public 
clcmdAA id ) {
    
    
aa = !aa
    
    formatex 
szCommandsizeof szCommand -1"sv_airaccelerate %i"aa 100 )
    
server_cmd szCommand )
    
client_print(0print_chat"sv_airaccelerate %i"aa 100 
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?
Alphad is offline
Old 07-17-2014, 12:38
Eagle07
This message has been deleted by Eagle07.
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-17-2014 , 12:45   Re: Reset
Reply With Quote #3

1
PHP Code:
register_event("HLTV""event_new_round""a""1=0""2=0"
2
PHP Code:
public event_new_round()
{
    
server_cmd("sv_airaccelerate 5")

__________________

Last edited by Eagle07; 07-17-2014 at 12:50.
Eagle07 is offline
Alphad
Senior Member
Join Date: Jun 2014
Old 07-17-2014 , 12:55   Re: Reset
Reply With Quote #4

Quote:
Originally Posted by Eagle07 View Post
1
PHP Code:
register_event("HLTV""event_new_round""a""1=0""2=0"
2
PHP Code:
public event_new_round()
{
    
server_cmd("sv_airaccelerate 5")

I know Eagle this is what I did but lets say that i did /aa it went to 100 then again it went to 5. Then on the new round i will have to type it twice to get 100.
So like do on a new round it wont remember what ppl did the round before, reset or something possible?

Last edited by Alphad; 07-17-2014 at 12:59.
Alphad is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-17-2014 , 13:03   Re: Reset
Reply With Quote #5

Why you make another topic ? Reset the bool in hltv event...
HamletEagle is offline
Alphad
Senior Member
Join Date: Jun 2014
Old 07-17-2014 , 13:06   Re: Reset
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
Why you make another topic ? Reset the bool in hltv event...
Sorry, How can i reset a bool? thats the reason i made this topic.
Edit: I did it. Thanks for saying me to reset it man!

Last edited by Alphad; 07-17-2014 at 13:39.
Alphad is offline
Alphad
Senior Member
Join Date: Jun 2014
Old 07-17-2014 , 14:02   Re: Reset
Reply With Quote #7

Sorry for double post. Thanks for helping

Last edited by Alphad; 07-17-2014 at 16:13.
Alphad is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-17-2014 , 16:13   Re: Reset
Reply With Quote #8

Instead of %i use %s and "enabled" and "disabled" in the print function.
mottzi is offline
Send a message via MSN to mottzi
Reply



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 13:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode