Raised This Month: $ Target: $400
 0% 

only ct


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-28-2014 , 03:53   Re: only ct
Reply With Quote #1

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
Reply



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 21:12.


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