new bool:gHasAWP[33]; //Bool created, it's automaticly set to false if you don't set it to true ... public your_function(id){ if(gHasAWP[id] == false) { //Do stuff here.. //then set the bool to true gHasAWP[id] = true; } else // true { return; }}