@LordOfNothing
Stop posting useless crap.
@CryWolf
Here you go:
PHP Code:
public fw_PlayerSpawn ( id )
{
if ( !is_user_alive ( id ) )
return;
set_task ( 4.0, "set_model", id )
}
---------->
PHP Code:
public fw_PlayerSpawn ( id )
{
if ( !is_user_alive ( id ) )
return;
if ( get_santa ( id ) )
return 1;
set_task ( 4.0, "set_model", id )
}
PHP Code:
public native_get_santa ( id ) {
return mosul [ id ] == true ? 1 : 0
}
------>
PHP Code:
public native_get_santa (plugin,params) {
static const maxplayers = get_maxplayers();
static client;
client = get_param(1);
if (client < 1 || client > maxplayers)
{
log_error(AMX_ERR_NATIVE,"Invaild player %d",client);
return false
}
return mosul[client];
}
PHP Code:
// In santa plugin, in plugin natives forward:
register_native("get_santa","native_get_santa",0);
PHP Code:
// In inc
native bool:get_santa(id);
__________________