I think he mean to be able to use Godmode and not reset the timer.
PHP Code:
public GodMode(id)
{
if(!is_user_alive(id))
{
kz_chat(id, "%L", id, "KZ_NOT_ALIVE")
return PLUGIN_HANDLED
}
new mapName[32]
new bool:detect=false;
get_mapname( mapName, 31)
for( new i = 0; i < sizeof( MAPS_NAME ); i++ )
if( equal( mapName, MAPS_NAME[ i ] ) )
detect=true;
new godmode = !get_user_godmode(id)
set_user_godmode(id, godmode)
if(godmode && !detect)
detect_cheat(id,"God Mode")
kz_chat(id, "%L", id, "KZ_GODMODE" , godmode ? "ON" : "OFF")
return PLUGIN_HANDLED
}
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.