04.09.2009, 15:30
Would This Work
Quote:
if(strcmp(cmd, "/help", true) == 0) { if(gPlayerLogged[playerid] != 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "[ ! ]/help job - For job commands"); return 1; } new helptopic = strval(tmp); if(helptopic == job) { SendClientMessage(playerid, COLOR_PINK, "[ ! ] /help mechanic - For mechanic commands"); } } else { SendClientMessage(playerid, COLOR_ERROR, "[ ! ] You are not logged in!"); return 0; } } |