I think it's so:
[pawn] else if (strcmp(cmd, "setgamemodename", true) == 0) {
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
format(szMsg,sizeof(szMsg),">> Format Corrept: /c %s [Nick/Name]",cmdtext);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
else {
new string[256];
format(string,256,">> Game mode has been change to - %s",cmdtext[16]);
SendClientMessageToAll(string);
SetGameModeText( "%s", cmdtext[16] );
}
return 1;
}[/pawn]