Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. $entered_map = "mp_crash";
  2. $sv_maprotation = $this->mod->rconRcon("sv_maprotation");
  3. // set sv_maprotation "map mp_crash map mp_backlot map mp_crossfire map mp_vacant"
  4. $maps = explode("map ", $sv_maprotation);
  5.  
  6. if(in_array($entered_map,$maps)) {
  7.     $this->mod->rconChangeMap($entered_map,$gametype);
  8. } else {
  9.     // map nicht gefunden
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement