Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $weapons = ['poing' , 'fouet' , 'pistolet'];
- $opponentWeapon = $weapons[rand(0,2)]; // Cela permet de choisir une arme de manière aléatoire.
- echo " Attention !!! " . "" . $opponentWeapon . " ";
- if ($opponentWeapon == 'poing') {
- echo $Indyweapon . " " . 'pistolet' . "" . " " . 'C\'est mort !!!';
- }
- else if ($opponentWeapon == 'fouet') {
- echo $Indyweapon . " " . 'poing' . " " . 'Pas bon pour toi !!!';
- }
- else {
- echo $Indyweapon . " " . 'fouet' . " " . 'Le fouet !!!';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement