CP:Simon
public cpp v1 · immutable if(strcmp(cmd, "/me", true)==0) { if(IsPlayerConnected(playerid)) { new tmp[256]; tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [text]"); return 1; } else { GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "** %s %s", string, cmdtext[4]); printf("[me] %s", string); SendClientMessageToAll(COLOR_LIGHTBLUE,string); return 1; } } }