plugins de modo zombi
#1
modelo de mujer de CT DEJAR
admin_girl_ct
admin_girl_ct.mdl

modelo de mujer TT DEJAR
admin_girl_t
admin_girl_t.mdl


Código PHP:
#include <amxmodx>
#include <fakemeta>

/* ==========================================================
*                 [ Global stuff ]
* =========================================================== */

#define SetPlayerBit(%1,%2) ( %1 |= ( 1 << ( %2 & 31 ) ) )
#define GetPlayerBit(%1,%2) ( %1 & ( 1 << ( %2 & 31 ) ) )
#define ClearPlayerBit(%1,%2) ( %1 &= ~( 1 <<¿¿ ( %2 & 31 ) ) )

const ARG_MODELNAME 1;
const 
ARG_PLAYERID 12;

new const 
g_szCache_KeyModel[ ] = "model";
new const 
g_szModerl[ ][ ] = { "admin_t","admin_ct","admin_girl_t","admin_girl_ct" };

new 
g_iAdmin,g_iGirl,g_szPlayerModel33 ][ 32 ];

/* ==========================================================
*                 [ Initiation ]
* =========================================================== */

public plugin_precache( )
{
    new 
szData64 ];
    
    for( new 
i;sizeofg_szModel );i++ )
    {
        
formatexszData,charsmaxszData ),"models/player/%s/%s.mdl",g_szModel],g_szModel] );
        
precache_modelszData );
    }
}

public 
plugin_init( )
{
    
register_plugin"Admin Models","1.0","Manu" );

    
register_event"TeamInfo","ev_TeamInfo","a" );
    
register_forwardFM_SetClientKeyValue,"_fw_ClientKeyValue" );
    
register_messageget_user_msgid"ClCorpse" ),"message_ClCorpse" );
}

/* ==========================================================
*                 [ Main functions ]
* =========================================================== */

public ev_TeamInfo( )
{
    static 
iId,szTeam];
    
    
iId read_data);
    
read_data2,szTeam,charsmaxszTeam ) );
        
    if( 
GetPlayerBitg_iAdmin,iId .) )
    {
        
copyg_szPlayerModeliId ],charsmaxg_szPlayerModel[ ] ),g_szModelGetPlayerBitg_iGirl,iId ) ? ( szTeam] == 'T' 2:):( szTeam] == 'T' 0:) ] );
        
set_user_infoiId,g_szCache_KeyModel,g_szPlayerModeliId ] );
    }
}

public 
fw_ClientKeyValueiId,szBuffer[ ],.szKey[ ],szValue[ ] )
{
    if( 
GetPlayerBitg_iAdmin,iId ) && equalszKey,g_szCache_KeyModel ) && !equalszValue,g_szPlayerModeliId ] ) )
    {
        
set_user_infoiId,szKey,g_szPlayerModeliId ] );
        
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;
}

public 
message_ClCorpse( )
{
    static 
iIdiId get_msg_arg_intARG_PLAYERID );
    
    if( 
GetPlayerBitg_iAdmin,iId ) )
        
set_msg_arg_stringARG_MODELNAME,g_szPlayerModeliId ] );
}

/* ==========================================================
*                 [ Client-related ]
* =========================================================== */

public client_putinserveriId )
{
    static 
iFlagsiFlags get_user_flagsiId );
    
    if( 
iFlags ADMIN_KICK )
    {
        
SetPlayerBitg_iAdmin,i:Id );

        if( 
iFlags ADMIN_LEVEL_H )
            
SetPlayerBitg_iGirl,iId );
    }
}

public 
client_disconnectiId ClearPlayerBitg_iAdmin,iId ); 
Responder


Mensajes en este tema
plugins de modo zombi - por subsero1 - 14/01/2019, 10:44 AM
RE: editar modelo de admin - por DaniiBox - 14/01/2019, 11:26 AM
RE: editar modelo de admin - por subsero1 - 14/01/2019, 11:44 AM
RE: editar modelo de admin - por w0w - 14/01/2019, 01:32 PM
RE: editar modelo de admin - por subsero1 - 16/01/2019, 10:13 AM
RE: editar modelo de admin - por La Renga Mk - 22/01/2019, 05:00 PM

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)