Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How do you check if a variable is equal to a persons name?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do you check if a variable is equal to a persons name? (Read 424 times)
ZombieDude
April 19, 2014, 08:36:37 PM
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?
Ad Bot
Advertisement
otto-san
April 19, 2014, 08:38:41 PM
%target = findClientByName(%name);
if(isObject(%target))
//ya there's a player
else
//na there's not
unless you wanted it to be literally equal
ZombieDude
April 19, 2014, 08:44:31 PM
stuff, forgot about findclientbyname.
Well, thanks.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How do you check if a variable is equal to a persons name?