Raised This Month: $ Target: $400
 0% 

edict


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BeNq!
Senior Member
Join Date: Mar 2009
Old 08-22-2010 , 14:33   edict
Reply With Quote #1

edict

Last edited by BeNq!; 07-23-2012 at 12:58.
BeNq! is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-22-2010 , 16:37   Re: Speed
Reply With Quote #2

Hard to understand.

You want that during 20 secs speed is 450, after 20 secs it resets to default?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
BeNq!
Senior Member
Join Date: Mar 2009
Old 08-22-2010 , 19:07   Re: Speed
Reply With Quote #3

Yes.

No default !

After 20 seconds, the speed returns to normal..
BeNq! is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-23-2010 , 04:28   Re: Speed
Reply With Quote #4

set_task then, in function change speed variable and check it in event
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
BeNq!
Senior Member
Join Date: Mar 2009
Old 08-23-2010 , 12:49   Re: Speed
Reply With Quote #5

Will you do me this plugin? And in order to have written these twenty seconds

Speed remained in 20 seconds, 19 seconds ..
BeNq! is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-23-2010 , 16:23   Re: Speed
Reply With Quote #6

Something like this:
PHP Code:
//somewhere above(global variable)
new variable[33];

public 
weapon_event(id)
{
    if(
variable[id] == 0)
    {
        
//code
    
}
    
set_task(20.0"change_variable_value"id)
}
public 
change_variable_value(id)
{
    
variable[id] = 1;

__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 08-24-2010 , 01:43   Re: Speed
Reply With Quote #7

That is the most retarded example I have ever seen.
__________________
Hi.
Kreation is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-24-2010 , 04:18   Re: Speed
Reply With Quote #8

So how you would do that?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
snowyledge
BANNED
Join Date: Dec 2009
Old 08-24-2010 , 08:27   Re: Speed
Reply With Quote #9

Quote:
Originally Posted by Kreation View Post
That is the most retarded example I have ever seen.
LOL
snowyledge is offline
BeNq!
Senior Member
Join Date: Mar 2009
Old 08-24-2010 , 10:19   Re: Speed
Reply With Quote #10

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>

#define PLUGIN "Speed"
#define VERSION "0.1"
#define AUTHOR "N_A_V_E_N"

new variable[33];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}
public 
weapon_event(id)
{
    if(
variable[id] == 0)
    {
        
fm_set_user_maxspeed(id300.0)
    }
    
set_task(20.0"change_variable_value"id)
}
public 
change_variable_value(id)
{
    
variable[id] = 1;
    
set_hudmessage(id1702550.440.7506.01.0);
    
show_hudmessage(id,"Speed in 20 sekund..");
    
show_hudmessage(id,"Speed in 19 sekund..");
    
show_hudmessage(id,"Speed in 18 sekund..");
    
show_hudmessage(id,"Speed in 17 sekund..");
    
show_hudmessage(id,"Speed in 16 sekund..");
    
show_hudmessage(id,"Speed in 15 sekund..");
    
show_hudmessage(id,"Speed in 14 sekund..");
    
show_hudmessage(id,"Speed in 13 sekund..");
    
show_hudmessage(id,"Speed in 12 sekund..");
    
show_hudmessage(id,"Speed in 11 sekund..");
    
show_hudmessage(id,"Speed in 10 sekund..");
    
show_hudmessage(id,"Speed in 9 sekund..");
    
show_hudmessage(id,"Speed in 8 sekund..");
    
show_hudmessage(id,"Speed in 7 sekund..");
    
show_hudmessage(id,"Speed in 6 sekund..");
    
show_hudmessage(id,"Speed in 5 sekund..");
    
show_hudmessage(id,"Speed in 4 sekund..");
    
show_hudmessage(id,"Speed in 3 sekund..");
    
show_hudmessage(id,"Speed in 2 sekund..");
    
show_hudmessage(id,"Speed in 1 sekund..");
    
show_hudmessage(id,"Speed is running");

? yes?
BeNq! is offline
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 22:02.


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