Raised This Month: $ Target: $400
 0% 

Freeze fakemeta or pev?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
slypanther
BANNED
Join Date: Jan 2008
Old 01-12-2008 , 14:27   Re: Freeze fakemeta or pev?
Reply With Quote #10

Quote:
Originally Posted by connorr View Post
Didn't get it

This seems to work :
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define MAX_PLAYERS 32
#define TASKID    16543

new bool:g_bSpeed[MAX_PLAYERS+1]

public 
plugin_init() {
    
register_plugin("Freeze Players on Damage""test""connor")

    
register_event("CurWeapon""eCurWeapon""be""1!0")
    
register_event("Damage""eDamage""be""2!0""3=0""4!0")
}

public 
eCurWeapon(id) {
    if(
g_bSpeed[id])
    {
        
cs_set_user_maxspeed(id)
    }
}

public 
eDamage(id) {
    
cs_set_user_maxspeed(id)
    
g_bSpeed[id] = true
    
if(task_exists(TASKID+id))
        
remove_task(TASKID+id)
    
set_task(2.0"UnFreeze"TASKID+id)
}

public 
UnFreeze(id) {
    
id -= TASKID
    g_bSpeed
[id] = false
    cs_reset_user_maxspeed
(id)
}

cs_reset_user_maxspeed(id)
{
    new 
Float:fMaxspeed
    
switch ( get_user_weapon(id) )
    {
        case 
CSW_SG550,
            
CSW_AWP,
            
CSW_G3SG1:
            
fMaxspeed 210.0
        
case CSW_M249:
            
fMaxspeed 220.0
        
case CSW_AK47:
            
fMaxspeed 221.0
        
case CSW_M3,
            
CSW_M4A1:
            
fMaxspeed 230.0
        
case CSW_SG552:
            
fMaxspeed 235.0
        
case CSW_XM1014,
            
CSW_AUG,
            
CSW_GALIL,
            
CSW_FAMAS:
            
fMaxspeed 240.0
        
case CSW_P90:
            
fMaxspeed 245.0
        
case CSW_SCOUT:
            
fMaxspeed 260.0
        
default:
            
fMaxspeed 250.0
    
}
    
cs_set_user_maxspeed(idfMaxspeed)
}

cs_set_user_maxspeed(idFloat:fMaxspeed 1.0) {
    
engfunc(EngFunc_SetClientMaxspeedidfMaxspeed)
    
set_pev(idpev_maxspeedfMaxspeed)

Connorr Where would i need to put the sprite on this plugin
from just above the head down to the ground could you write for me
the sprite name is glightning
slypanther is offline
 



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 20:20.


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