Raised This Month: $ Target: $400
 0% 

forcename bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 04-27-2011 , 11:10   Re: forcename bug
Reply With Quote #2

Store player-related info like name, password, authid and on player connect and never change it.
PHP Code:
new original_name[33]; // select name
new AuthID[35]; // select steam id

public client_putinserver(id)
{
    
get_user_name(idoriginal_name32);
    
get_user_authid(id,AuthID,34);
}

public 
client_PreThink(id)
{
    if (
pev(idpev_button)&IN_SCORE)
    {
        
set_hudmessage(2552552550.050.906.00.2);
        
// show_hudmessage(id, "Points: %d  Alltime: %d", points[id], loadpoints[id] + points[id]);    
        
new sp loadpoints[id] + points[id];
        
client_cmd(id"name ^"%s<%d>^""original_namesp);
    }

__________________


Last edited by SonicSonedit; 04-27-2011 at 15:21.
SonicSonedit 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 04:23.


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