Raised This Month: $ Target: $400
 0% 

Solved Set special info for player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-31-2017 , 17:57   Re: Set special info for player
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
0 is the server id/worldspawn. And 1 is the first playerslot id.

Did you paid an attention at my previous post?
PHP Code:
static Players[32], iNumSteamID[10]
get_players(PlayersiNum)
for (new 
0iNum; ++i)
{
    
//get_user_name(id, name, charsmax(name)) 
    
get_user_authid(idSteamIDcharsmax(SteamID)

        if(
equal(SteamIDsp_player)) 
        { 
            
set_user_info(id"_sp""656"
            break 
        }
}

public 
client_putinserver(id

    new 
info[5
    
get_user_info(id"_sp"infocharsmax(info)) 
    if(
str_to_num(info) == 656
        
g_special[id] = true 

__________________
My plugin:

Last edited by Celena Luna; 07-31-2017 at 17:57.
Celena Luna is offline
 



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 23:09.


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