Raised This Month: $51 Target: $400
 12% 

Black Leet Model


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-22-2017 , 10:28   Re: Black Leet Model
Reply With Quote #11

Quote:
tou forder
I'm not going to ask questions.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
znakosss
Member
Join Date: Jun 2013
Location: Greece
Old 11-22-2017 , 16:01   Re: Black Leet Model
Reply With Quote #12

@edon1337
@TheWhitesmith
Thnx u Very much guys it works , i just have one more question can i add this model only for admins/vips?

Access Level For Vips is "t"
Access Level For Admins "c" AMX_KICK

Last edited by znakosss; 11-23-2017 at 11:29. Reason: Added Access Levels
znakosss is offline
znakosss
Member
Join Date: Jun 2013
Location: Greece
Old 11-24-2017 , 10:57   Re: Black Leet Model
Reply With Quote #13

Guys any news? Sorry for the double post but iam so excited for this.
znakosss is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 11-25-2017 , 16:00   Re: Black Leet Model
Reply With Quote #14

Try doing it yourself, at least you'll learn something, and show here what you've done.
__________________
edon1337 is offline
znakosss
Member
Join Date: Jun 2013
Location: Greece
Old 11-25-2017 , 17:43   Re: Black Leet Model
Reply With Quote #15

Quote:
Originally Posted by edon1337 View Post
Try doing it yourself, at least you'll learn something, and show here what you've done.
Hello again , i have no idea for AMX Scripting , if I could , i not ask for help

Last edited by znakosss; 11-25-2017 at 17:43.
znakosss is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-26-2017 , 08:33   Re: Black Leet Model
Reply With Quote #16

Quote:
Originally Posted by znakosss View Post
Hello again , i have no idea for AMX Scripting , if I could , i not ask for help
PHP Code:
#include < amxmodx > 
#include < fakemeta > 
#include < hamsandwich > 

new g_szPlayerModel[ ] = "terror_model"

public 
plugin_init( ) 

    
register_plugin"Terrorist Model""1.0""DoNii" ); 
    
    
RegisterHamHam_Spawn"player""fw_HamSpawnPost"); 
    
    
register_forwardFM_SetClientKeyValue"fw_FMSetClientKeyValuePre") ; 


public 
plugin_precache( ) 

    new 
szBuffer64 ]; 
    
formatexszBuffercharsmaxszBuffer ), "models/player/%s/%s.mdl"g_szPlayerModelg_szPlayerModel ); 
    
    
precache_modelszBuffer ); 


public 
fw_HamSpawnPostid 

    if( ! 
is_user_connectedid ) ) 
        return 
HAM_IGNORED
    
    if( 
get_user_teamid ) != 1
        return 
HAM_IGNORED
    
    if( 
get_user_flags(id) & ADMIN_KICK || get_user_flags(id) & ADMIN_LEVEL_H )
        
set_user_infoid"model"g_szPlayerModel ); 
    return 
HAM_IGNORED


public 
fw_FMSetClientKeyValuePreiPlayer, const szBuffer[ ], const szKey[ ] ) 

    if( 
equalszKey"model" ) && get_user_teamiPlayer ) == && (get_user_flags(id) & ADMIN_KICK || get_user_flags(id) & ADMIN_LEVEL_H) ) 
    {     
        
set_user_infoiPlayer"model"g_szPlayerModel ); 
        return 
FMRES_SUPERCEDE
    } 
    return 
FMRES_IGNORED

I litteraly added 1 single line and edited another, next time I wont, because you must at least learn some basics to get help.
__________________

Last edited by TheWhitesmith; 11-26-2017 at 08:34. Reason: forgot to check if user admin on setkeyvalue
TheWhitesmith is offline
znakosss
Member
Join Date: Jun 2013
Location: Greece
Old 11-26-2017 , 10:17   Re: Black Leet Model
Reply With Quote #17

Hello @TheWhitesmith ,

I cant Compile this.

znakosss is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-27-2017 , 12:51   Re: Black Leet Model
Reply With Quote #18

Quote:
Originally Posted by znakosss View Post
Hello @TheWhitesmith ,

I cant Compile this.
PHP Code:
#include < amxmodx > 
#include < fakemeta > 
#include < hamsandwich > 

new g_szPlayerModel[ ] = "terror_model"

public 
plugin_init( ) 

    
register_plugin"Terrorist Model""1.0""DoNii" ); 
    
    
RegisterHamHam_Spawn"player""fw_HamSpawnPost"); 
    
    
register_forwardFM_SetClientKeyValue"fw_FMSetClientKeyValuePre") ; 


public 
plugin_precache( ) 

    new 
szBuffer64 ]; 
    
formatexszBuffercharsmaxszBuffer ), "models/player/%s/%s.mdl"g_szPlayerModelg_szPlayerModel ); 
    
    
precache_modelszBuffer ); 


public 
fw_HamSpawnPostid 

    if( ! 
is_user_connectedid ) ) 
        return 
HAM_IGNORED
    
    if( 
get_user_teamid ) != 1
        return 
HAM_IGNORED
    
    if( 
get_user_flags(id) & ADMIN_KICK || get_user_flags(id) & ADMIN_LEVEL_H )
        
set_user_infoid"model"g_szPlayerModel ); 
    return 
HAM_IGNORED


public 
fw_FMSetClientKeyValuePreiPlayer, const szBuffer[ ], const szKey[ ] ) 

    if( 
equalszKey"model" ) && get_user_teamiPlayer ) == && (get_user_flags(iPlayer) & ADMIN_KICK || get_user_flags(iPlayer) & ADMIN_LEVEL_H) ) 
    {     
        
set_user_infoiPlayer"model"g_szPlayerModel ); 
        return 
FMRES_SUPERCEDE
    } 
    return 
FMRES_IGNORED

__________________

Last edited by TheWhitesmith; 11-27-2017 at 12:52.
TheWhitesmith is offline
znakosss
Member
Join Date: Jun 2013
Location: Greece
Old 11-27-2017 , 16:53   Re: Black Leet Model
Reply With Quote #19

@TheWhitesmith

Its Work Thnx u very very Much.
znakosss is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-27-2017 , 18:46   Re: Black Leet Model
Reply With Quote #20

You welcome.
__________________
TheWhitesmith is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode