Thread: only ct
View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-28-2014 , 03:53   Re: only ct
Reply With Quote #6

Then you should go to suggestions/request forum, it's obvious that you don't know how to do this simple thing.

PHP Code:
#include <amxmodx>
#include <fun>

#define TASK_GM 10001

new Float:gfProtectTime 10.0;

public 
plugin_init() 
{
    
register_plugin"Spawn Protection""0.1""hornet" );
    
    
register_logevent("OnRoundStart"2"1=Round_Start")  
}

public 
OnRoundStart ( )
{
    
remove_taskTASK_GM );
    
    new 
players32 ], playernum;
    
get_playersplayersnum"aeh""CT" );
    
    for( new 
num ++ )
    {
        
player players];
        
set_user_godmodeplayer);
    }
    
    
set_taskgfProtectTime"godmodeOff"TASK_GM )
}

public 
godmodeOff()
{
    new 
players32 ], playernum;
    
get_playersplayersnum"aeh""CT" );
    for( new 
num ++ )
    {
        
player players];
        
set_user_godmodeplayer);
    }

This is how you should done it. Also read here: https://forums.alliedmods.net/showth...=42159?t=42159
HamletEagle is offline