10.05.2010, 21:28
Hello, I have made a /o command that works, however if conflicts with another command I have, /ofd. When anyone does /ofd, it shows in the OOC chat ((playername: fd)). Is there a way to make sure there is a space delimiter, so /ofd will not conflict with it? Here is the code I have:
Thanks
Код:
if(!strcmp(cmdtext, "/o", true, 2)){ if(!cmdtext[2])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /o [OOC message]"); if(ServerInfo[DisableChat] ==0) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, 128, "((%s: %s))", name, cmdtext[2]); SendClientMessageToAll(lightblue, string); } else { SendClientMessage(playerid, red, "An Admin has disabled the OOC chat."); } }