Quote:
Originally Posted by H.RED.ZONE
You mean zp_core_is_zombie (zombie) and !zp_core_is_zombie (human)
|
Yea, and I would suggest him to make an array to hold the ability.
Quote:
|
+1 Lower cpu you use client_PreThink...
|
He could use FM_CmdStart by fakemeta module.
PreThink will make server lag and high cpu usage because it will think every 0.1 second. That's not a good sign.
To Creator : Please make an array to hold for this ability.
EDIT : Default round event
PHP Code:
new g_max
new g_iHasAbility[33] // this is an array
public plugin_init ( )
{
register_event ( "Round_End", 2, "1=Round_End" )
g_max = get_maxplayers ( )
}
public Round_End ( )
{
for ( new id=1; id <= g_max; id++ )
{
if ( is_user_connected ( id ) && g_iHasAbility [ id ] )
{
g_iHasAbility[ id ] = 0;
}
}
}
__________________