Raised This Month: $ Target: $400
 0% 

Make developer fly? [zp 4.3]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 11-16-2013 , 09:05   Re: Make developer fly? [zp 4.3]
Reply With Quote #4

Quote:
Originally Posted by LordOfNothing View Post
press E when you are in air and you need flag A (admin_immunity)

PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta>
#include <engine>
#include <amxmisc>

public plugin_init()
{
    
register_forward(FM_PlayerPreThink"ScanPlayer");
}

public 
ScanPlayer(id)
{
    if(!
get_user_frags(id) & ADMIN_IMMUNITY)
        return 
PLUGIN_HANDLED

    
if(get_user_button(id) & IN_USE)
    {
        
set_user_gravity(id0.3);
    }else{
        
set_user_gravity(id1.0);
    }
    return 
PLUGIN_CONTINUE


if(!(get_user_flags(id) & ADMIN_IMMUNITY))

A bit silly method and doesn't work well with anything else that changes your gravity, so you know.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
 


Thread Tools
Display Modes

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 19:54.


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