PHP: public $games = "N";// Codeif($this->games == "S"){// cancel Move}// How Can Start IT !$this->games = "S";
And mind explaining what these strings are? Also, might be more efficient using booleans or integers.
You probably are talking to yourself. How should I create the code without knowing anything about your code?
Here's a example, but I don't know how your game works. PHP: //game started variable, not yet startedprivate $started = false;//function to start game, player can movepublic function startGame(){$this->started = true;}public function onMove(){$p = $e->getPlayer();//check if game didn't startif(!$this->started){//option 1//player can move head$from = clone $e->getFrom();$to = $e->getTo();$from->yaw = $to->yaw;$from->pitch = $yaw->pitch;$e->setTo($from);//option 2//player cannot move head$e->setCancelled();}}