Raised This Month: $ Target: $400
 0% 

Solved How i can cheack if "hud_centerid 1" for the clients?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-04-2019 , 16:13   How i can cheack if "hud_centerid 1" for the clients?
Reply With Quote #1

Hello, How can I verify that my client is setting up (hud_centerid 1) the activation setting?
In my poor code I tried three ways for it but it did not work:
PHP Code:
public client_PreThink(id) {
    
    
//test 1
    
new centerid1[32]
    
get_user_info(id"hud_centerid"centerid131)
        
    if ( 
centerid1[id] != ) {
        
client_print(idprint_chat"hud_centerid1 %d "centerid1)
    }
      
      
    
//test 2
    
new centerid2[16]
    
get_user_info(id"hud_centerid"centerid215)
        
    new 
hudcentrid2 str_to_num(centerid2)
        
    if (
hudcentrid2 != )
    {
        
client_print(idprint_chat"hud_centerid2 %d "hudcentrid2)
    }
    
    
    
//test 3
    
new centerid3[2]
    
    
get_user_info(id"hud_centerid"centerid31)
    
    if (
centerid3[0] == '1')
    {
        
client_print(idprint_chat"hud_centerid3 %d "centerid3)
    }
    return 
FMRES_IGNORED

__________________

Last edited by abdobiskra; 06-05-2019 at 07:31. Reason: Solved
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 


Thread Tools
Display Modes

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:24.


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