if(!strcmp(cmdtext,"/heal",true)) { if(gPlayerClass[playerid] != 0 || gPlayerClass[playerid] != 2)) return 0; //Rest of your healing script return 1; }