Raised This Month: $ Target: $400
 0% 

Permanent Superjump?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-19-2009 , 13:51   Re: Permanent Superjump?
Reply With Quote #5

Try this :

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <tsfun>

#define MAX_PLAYERS 32

new g_bFirstSpawn[MAX_PLAYERS+1]

public 
plugin_init()
{
    
RegisterHam(Ham_Spawn"player""Player_Spawn_Pre")
    
register_forward(FM_ClientPutInServer"ClientPutInServer")
}

public 
ClientPutInServer(id)
{
    
g_bFirstSpawn[id] = true
}

public 
Event_TextMsg_Restart()
{
    
g_bRestarting true
}

public 
Player_Spawn_Preid )
{
    if( 
g_bFirstSpawn[id] )
    {
        
g_bFirstSpawn[id] = false
        
return
    }

    
ts_givepwup(idts_createpwup(TSPWUP_SUPERJUMP))

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-19-2009 at 13:54.
ConnorMcLeod 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 08:58.


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