SHARE
TWEET

Untitled

a guest Oct 13th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $weapons = ['fists', 'whip', 'gun'];
  4. $opponentWeapon = $weapons[rand(0,2)]; // Cela permet de choisir une arme de manière aléatoire.
  5.  
  6. // TODO
  7. if ($opponentWeapon == $weapons [0]) {
  8.         $indyWeapon = 'gun';
  9. } elseif ($opponentWeapon == $weapons [1]) {
  10.         $indyWeapon = 'fists';
  11. } elseif ($opponentWeapon == $weapons [2]) {
  12.         $indyWeapon = 'whip';
  13. }
  14.  
  15. echo 'my opponent take '.$opponentWeapon.' so i use '.$indyWeapon.' to kick his ass. Mouahahahah !!';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top