AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   edict (https://forums.alliedmods.net/showthread.php?t=136072)

BeNq! 08-22-2010 14:33

edict
 
edict

naven 08-22-2010 16:37

Re: Speed
 
Hard to understand.

You want that during 20 secs speed is 450, after 20 secs it resets to default?

BeNq! 08-22-2010 19:07

Re: Speed
 
Yes.

No default !

After 20 seconds, the speed returns to normal..

naven 08-23-2010 04:28

Re: Speed
 
set_task then, in function change speed variable and check it in event

BeNq! 08-23-2010 12:49

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

Speed remained in 20 seconds, 19 seconds ..

naven 08-23-2010 16:23

Re: Speed
 
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;



Kreation 08-24-2010 01:43

Re: Speed
 
That is the most retarded example I have ever seen.

naven 08-24-2010 04:18

Re: Speed
 
So how you would do that?

snowyledge 08-24-2010 08:27

Re: Speed
 
Quote:

Originally Posted by Kreation (Post 1280310)
That is the most retarded example I have ever seen.

LOL

BeNq! 08-24-2010 10:19

Re: Speed
 
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?


All times are GMT -4. The time now is 22:02.

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