Raised This Month: $ Target: $400
 0% 

block key 'model' & used it for other case ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 04-06-2017 , 15:34   block key 'model' & used it for other case ?
Reply With Quote #1

Hi guys
i want block key 'model' for clients and i want used it for othere function change model :
what i try :
PHP Code:
public plugin_init() {
    
    
register_forward(FM_SetClientKeyValue"SetClientKeyValue");
}

new 
changes[32

public 
client_putinserver(id)
{
    
changes[id] = 0;
    
}

public 
SetClientKeyValue(player, const szInfoBuffer[], const szKey[], const szValue[])
{
    if(
equal(szKey"model") && is_user_connected(player) && !equal(g_asModels[player], ""))
    {

        if(
changes[player] >= )
        {
            
client_print(playerprint_chat" ====== Stop  change model ======= ")
            return 
FMRES_IGNORED
        
}
        
client_print(playerprint_chat" ====== Auto  change model ======= ")
        
        
changes[player]++
        
        return 
FMRES_SUPERCEDE

    
}
    return 
FMRES_IGNORED

but the clients still can used this cmd ? is there othere way pleas !
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 



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 17:48.


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