Yes, I compiled and tested now...
It pause, but no unpause
This is parts of my code:
Code:
new cvar_automatic;
new iAdmins;
public plugin_init()
{
cvar_automatic = register_cvar("gal_automatic", "1");
}
public client_disconnect(id)
{
if( is_user_admin( id ) && get_pcvar_num(cvar_automatic) == 1 )
{
if( --iAdmins < 1 )
{
unpause( "a" );
}
}
}
public client_putinserver(id)
{
if( is_user_admin( id ) && get_pcvar_num(cvar_automatic) == 1 )
{
iAdmins++;
pause( "a" );
}
}
In attachments, my modified source...
PS: Search for //AUTOMATIC in the source, I put this to find more quicky my modifications...
Quote:
|
Originally Posted by Bugsy
The only issue I see is whether or not the plugin will be able to unpause itself while in a paused state.
|
Hahaha... IS true!!! If stoped he doen't work more!!! hahaah... I'll make a new plugin to pause and unpause this plugin... Is the only way...
This is my second modification in a plugin, the first I only translated the KnifeDuel to Pt_Br...