View Single Post
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-05-2013 , 16:05   Re: [Any] Name Change Info
Reply With Quote #7

Hi again,

Be careful when using
Code:
decl String:steamID[20], String:ipAddress[16], String:oldName[33], String:newName[33];
Both GetClientIP and GetClientAuthString can return false. Sometimes a client can bypass the authorization, meaning he doesn't have a steamId (or possibly a spoofed one); meaning you'll get a random value, as you do not force-null the first char. I recommend doing ipAddress[0] = '\0' and steamID[0] = '\0' after their declaration.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline