public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/somecmd")) { if(GetPlayerScore(playerid) != 1) return 0; // Rest of the cmd return 1; } }