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_task( TASK_GM );
new players[ 32 ], player, num;
get_players( players, num, "aeh", "CT" );
for( new i ; i < num ; i ++ )
{
player = players[ i ];
set_user_godmode( player, 1 );
}
set_task( gfProtectTime, "godmodeOff", TASK_GM )
}
public godmodeOff()
{
new players[ 32 ], player, num;
get_players( players, num, "aeh", "CT" );
for( new i ; i < num ; i ++ )
{
player = players[ i ];
set_user_godmode( player, 0 );
}
}
This is how you should done it. Also read here:
https://forums.alliedmods.net/showth...=42159?t=42159