Post: Auto give Co-Host (Source Engine Base)
08-20-2015, 01:35 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I was wondering how this would be done, Put someones name or GT in the "" and it give them Co-Host automatically, Extremely useful when doing GM's suck as SND
(adsbygoogle = window.adsbygoogle || []).push({});
08-27-2015, 05:26 PM #11
Im_YouViolateMe
NextGenUpdate Elite
^^^ You're all doing it wrong. self.name or player.name gets the name of the player + their clan tag.

This is the correct way:

    
if (getName(self) == "player name here")

OR

if (getName(player) == "player name here")


getName(player)
{
name = getSubStr(player.name, 0, player.name.size);
for(i = 0; i < name.size; i++)
{
if(name[i]=="]")
break;
}
if(name.size != i)
name = getSubStr(name, i + 1, name.size);

return name;
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo