Author Topic: How do you check if a variable is equal to a persons name?  (Read 424 times)

Lets say I have this:
Code: [Select]
function servercmddoSomething(%this, %name)
{
???????????????????
[code is here]
}
How do I find out if %name is equal to the playername of a player on the server?

%target = findClientByName(%name);
if(isObject(%target))
   //ya there's a player
else
   //na there's not


unless you wanted it to be literally equal

stuff, forgot about findclientbyname.

Well, thanks.