if(strcmp(cmd, "/notice", true) == 0) { if(IsPlayerAdmin(playerid)) { new TextArguments[256]; TextArguments = strtok(cmdtext, idx); if(!strlen(TextArguments)){ SendClientMessage(playerid, COLOR_WHITE, "USAGE: /notice [message]."); return 1; new space = strfind(cmdtext, "SMS:"); format(string, sizeof(string), "SMS: %s", cmdtext); if (space) strmid(TextArguments, cmdtext, space+1,strlen(cmdtext)); SendClientMessageToAll(COLOR_YELLOW, TextArguments); return 1; } else { SendClientMessage(playerid, COLOR_RED, "You must be admin to use this command."); return 1; } } }