02.08.2014, 20:17
Yes, cmdtext is an array (you can call it a string). Everything that is written after "/" is stored in that array.
"if(!cmdtext[3])" will check if player wrote just "/me" because after "me" there is a null, or the end of the string.
And yeah, cmdtext[4] would be "/me(space)(first letter)", i.e. "/me s(hots the player)"
"if(!cmdtext[3])" will check if player wrote just "/me" because after "me" there is a null, or the end of the string.
And yeah, cmdtext[4] would be "/me(space)(first letter)", i.e. "/me s(hots the player)"