04/12/2014, 10:06 PM
chicos me podrian arreglar este plugin ? el problema es que cuando lo subo a mi sv y entro con el steam no me deja entrar me tira error de una .spr y nose que onda :S graciasss =)
Código PHP:
#include < amxmodx >
#include < fakemeta >
public plugin_precache( )
precache_model( "models/santa_hat.mdl" );
public plugin_init( ) {
register_plugin( "Santa Hat", "1.3", "xPaw" );
set_pcvar_string( register_cvar( "santa_hat", "1.3", FCVAR_SERVER ), "1.3" );
if( !get_pcvar_num( register_cvar( "amx_santahat", "1" ) ) ) {
log_amx( "[SANTAHAT] Plugin is disabled, hats are not being created." );
return;
}
new iEntity,
iMaxPlayers = get_maxplayers( ),
iInfoTarget = engfunc( EngFunc_AllocString, "info_target" );
new const MODEL[ ] = "models/santa_hat.mdl";
for( new id = 1; id <= iMaxPlayers; id++ ) {
iEntity = engfunc( EngFunc_CreateNamedEntity, iInfoTarget );
if( pev_valid( iEntity ) ) {
engfunc( EngFunc_SetModel, iEntity, MODEL );
set_pev( iEntity, pev_movetype, MOVETYPE_FOLLOW );
set_pev( iEntity, pev_aiment, id );
set_pev( iEntity, pev_owner, id );
} else
log_amx( "[SANTAHAT] Failed to create hat for #%i", id );
}
}
hasta donde llegamos hoy?