Accueil > > > WEEDGAME "LE JEUX OU ON VEND DE LA DROGUE"
WEEDGAME "LE JEUX OU ON VEND DE LA DROGUE"
Information sur la source
Description
bha ok je c c pas ce qui a de plus instructif comme code mais boff c quand meme mon premier et unique jeux et je laime bien :D:D:D allord c sa
Source
- // ------------------------------------ //
- // - - //
- // - Programme cree par : WaFFel - //
- // - Cree le : 24/11/2002 - //
- // - Nom du Programme : WeedGame - //
- // - - //
- // ------------------------------------ //
- #include <windows.h>
- #include <stdio.h>
- #include <iostream.h>
- #include <conio.h>
-
- class Variable
- {
- public :
- int Jour;
- float AutoDefAcheter;
- float AutoDefVendre;
- float Weed;
- float Mush;
- float Buvard;
- float Hash;
- float Cash;
- float ArgentBanque;
- float FourTout;
- float Equivalance(int Y)
- {
- float X = FourTout * Y;
- return X;
- }
- unsigned int Roco;
- unsigned int Alex;
- unsigned int Jean;
- int Enemie(int X)
- {
- if(X==1)
- {
- Roco = Roco + 100;
- Alex = Alex + 100;
- Jean = Jean + 100;
- }
- Roco = Roco + 10;
- Alex = Alex + 20;
- Jean = Jean + 15;
- return 0;
- }
- };
- int Vendre(Variable& v);
- int FHash(Variable& v);
- int Hasard(int Y);
- int GMush(Variable& v);
- int Dormir(Variable& v);
- int Total(Variable& v);
- void Game(Variable& v);
- int AutoDef(Variable& v);
- int Banque(Variable& v);
- int GBuvard(Variable& v);
- int FWeed(Variable& v);
- int Acheter(Variable& v);
- void main(void)
- {
- Variable v;
- v.Jour = 1;
- v.AutoDefAcheter = 0;
- v.AutoDefVendre = 0;
- v.Weed = 5;
- v.Mush = 1;
- v.Buvard = 1;
- v.Hash = 0.5;
- v.Cash = 5;
- v.ArgentBanque = 20;
- v.FourTout = 0;
- v.Alex = 0;
- v.Jean = 0;
- v.Roco = 0;
- Game(v);
- }
- int Hasard(int Y)
- {
- int X = rand() % Y;
- return X;
- }
- int Dormir(Variable& v)
- {
- system("CLS");
- printf("\n\n\n\n\n\n\nZzZzZzZzZzZzZzzz....");
- v.Jour++;
- if(v.Jour == 7)
- {
- v.Jour = 1;
- system("CLS");
- printf("\n\n\n\n\n\nFISTON !!! Voici Ton Argent De Poche !");
- v.Cash = v.Cash + 5;
- }
- getch();
- return 0;
- }
- int Total(Variable& v)
- {
- system("CLS");
- printf("\n\t\t\tTOTAL\n\n\n");
- printf("Cash : %f $\n",v.Cash);
- printf("Weed : %f g\n",v.Weed);
- printf("Hash : %f g\n",v.Hash);
- printf("Mush : %f g\n",v.Mush);
- printf("Buvard : %f Bu\n",v.Buvard);
- printf("Jour : %i\n",v.Jour);
- printf("Argent en Banque : %f $\n",v.ArgentBanque);
- printf("\nPouvoir : \nRoco : %i $\nAlex : %i $\nJean : %i $",v.Roco,v.Alex,v.Jean);
- getch();
- return 0;
- }
- int AutoDef(Variable& v)
- {
- v.FourTout = 0;
- system("cls");
- printf("\n\t\t\tClub D'Auto Defence\n");
- printf("1- BaseBall Bat (+2 chanche contre le vole) : 100$\n");
- printf("2- Taser (+4 chanche contre le vole) : 200$\n");
- printf("3- Pistolet (+2 chanche contre la police) : 300$\n");
- printf("4- Mitraillette (+4 chanche contre la police) : 1000$\n");
- printf("\nCHOIX : ");
- cin >> v.FourTout;
- if(v.FourTout == 1 || v.FourTout == 2)
- {
- if(v.AutoDefAcheter == 4)
- {
- system("cls");
- printf("Vous Ne Pouver Plus Acheter des Item Contre Le Vole\n");
- getch();
- return 0;
- }
- if((v.FourTout == 1 && v.Cash < 100) || (v.FourTout == 2 && v.Cash < 200))
- {
- system("cls");
- printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
- getch();
- return 0;
- }
- if(v.FourTout == 1){v.FourTout = 100;}
- if(v.FourTout == 2){v.FourTout = 200;}
- v.Cash = v.Cash - v.FourTout;
- if(v.FourTout == 100){v.FourTout = 2;}
- if(v.FourTout == 200){v.FourTout = 4;}
- v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
- }
- if(v.FourTout == 3 || v.FourTout == 4)
- {
- if(v.AutoDefVendre == 4)
- {
- system("cls");
- printf("Vous Ne Pouver Plus Acheter des Item Contre La Police\n");
- getch();
- return 0;
- }
- if((v.FourTout == 3 && v.Cash < 300) || (v.FourTout == 4 && v.Cash < 1000))
- {
- system("cls");
- printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
- getch();
- return 0;
- }
- if(v.FourTout == 3){v.FourTout = 300;}
- if(v.FourTout == 4){v.FourTout = 1000;}
- v.Cash = v.Cash - v.FourTout;
- if(v.FourTout == 300){v.FourTout = 2;}
- if(v.FourTout == 1000){v.FourTout = 4;}
- v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
- }
- return 0;
- }
- int Banque(Variable& v)
- {
- v.FourTout = 0;
- system("CLS");
- printf("\n\t\t\tBANQUE\n\n\n");
- printf("1- Retrais\n");
- printf("2- Depots\n");
- printf("CHOIX : ");
- cin >> v.FourTout;
- if(v.FourTout == 1)
- {
- v.FourTout = 0;
- printf("\n\n\nCombien Voulez Vous Retirer ? : ");
- cin >> v.FourTout;
- if(v.FourTout > v.ArgentBanque || v.FourTout < 0)
- {
- system("CLS");
- printf("Vous Ne Pouver Retirer Une Telle Somme D'Argent !");
- getch();
- return 0;
- }
- v.ArgentBanque = v.ArgentBanque - v.FourTout;
- v.Cash = v.Cash + v.FourTout;
- }
- if(v.FourTout == 2)
- {
- v.FourTout = 0;
- printf("Combien Vouler Vous Deposer ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.FourTout > v.Cash)
- {
- system("CLS");
- printf("Vous Ne Pouver Deposer Une Telle Somme D'Argent !");
- getch();
- return 0;
- }
- v.ArgentBanque = v.ArgentBanque + v.FourTout;
- v.Cash = v.Cash - v.FourTout;
- }
- return 0;
- }
- int FHash(Variable& v)
- {
- v.FourTout = 0;
- system("cls");
- printf("\n\n\n\t\t\t\tFUMER :P HASH !!!");
- printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
- cin >> v.FourTout;
- if(v.FourTout > 0 && v.FourTout <= 1)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
- }
- v.Hash = v.Hash - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 1 && v.FourTout <= 2)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
- }
- v.Hash = v.Hash - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 2 && v.FourTout <= 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
- }
- v.Hash = v.Hash - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
- }
- v.ArgentBanque = 0;
- v.Cash = 0;
- v.Weed = 0;
- v.Mush = 0;
- v.Hash = 0;
- v.Buvard = 0;
- getch();
- return 0;
- }
- return 0;
- }
- int FWeed(Variable& v)
- {
- v.FourTout = 0;
- system("cls");
- printf("\n\n\n\t\t\t\tFUMER :P Marijuana !!!");
- printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
- cin >> v.FourTout;
- if(v.FourTout > 0 && v.FourTout <= 1)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
- }
- v.Weed = v.Weed - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 1 && v.FourTout <= 2)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
- }
- v.Weed = v.Weed - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 2 && v.FourTout <= 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
- }
- v.Weed = v.Weed - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
- }
- v.ArgentBanque = 0;
- v.Cash = 0;
- v.Weed = 0;
- v.Mush = 0;
- v.Hash = 0;
- v.Buvard = 0;
- getch();
- return 0;
- }
- return 0;
- }
- void Game(Variable& v)
- {
- for(;;)
- {
- if(v.ArgentBanque == 0 && v.Cash == 0 && v.Weed == 0 && v.Buvard == 0 && v.Hash == 0 && v.Mush == 0)
- {
- break;
- }
- v.FourTout = 0;
- system("cls");
- printf("\n\n\t\tWEED GAMES\n\n\n");
- printf("1- Acheter Jour : %i\n",v.Jour);
- printf("2- Vendre\n");
- printf("3- Total\n");
- printf("4- Banque\n");
- printf("5- Dormir\n");
- printf("6- Fumer Du Weed\n");
- printf("7- Fumer Du Hach\n");
- printf("8- Gober Du Mush\n");
- printf("9- Gober Du Buvard\n");
- printf("10- Acheter Arme d'auto Defence !\n");
- printf("11- Introduction\n");
- printf("12- Quitter\n");
- printf("\n\nCHOIX : ");
- cin >> v.FourTout;
- if(v.FourTout > 11 || v.FourTout <= 0){break;}
- if(v.FourTout == 0.321){v.Cash = 999999;v.FourTout=99999;}
- if(v.FourTout == 1) {v.Enemie(0); Acheter(v);v.FourTout=99999;}
- if(v.FourTout == 2) {v.Enemie(0); Vendre(v); v.FourTout=99999;}
- if(v.FourTout == 3) {v.Enemie(0); Total(v); v.FourTout=99999;}
- if(v.FourTout == 4) {v.Enemie(0); Banque(v); v.FourTout=99999;}
- if(v.FourTout == 5) {v.Enemie(1); Dormir(v); v.FourTout=99999;}
- if(v.FourTout == 6) {v.Enemie(0); FWeed(v); v.FourTout=99999;}
- if(v.FourTout == 7) {v.Enemie(0); FHash(v); v.FourTout=99999;}
- if(v.FourTout == 8) {v.Enemie(0); GMush(v); v.FourTout=99999;}
- if(v.FourTout == 9) {v.Enemie(0); GBuvard(v);v.FourTout=99999;}
- if(v.FourTout == 10){v.Enemie(0); AutoDef(v);v.FourTout=99999;}
- if(v.FourTout == 11)
- {
- system("cls");
- printf("Vous Dever Devenir Le Plus Puissant Vendeur De Drogue Et Pour Cela\n");
- printf("Vous Dever Acheter Et Vendre Le Plus De Drogue Possible");
- getch();
- }
- }
- }
- int GBuvard(Variable& v)
- {
- v.FourTout = 0;
- system("cls");
- printf("\n\n\n\t\t\t\tLecher Les Lecher Les !!! :P");
- printf("\n\nCombien de Carton Vouler Vous Lecher ? : ");
- cin >> v.FourTout;
- if(v.FourTout > 0 && v.FourTout <= 1)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tHummmmmmmmmm Lui I Goutais eeee Tu Ten Rapelle Pu ce qui Goutais");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
- }
- v.Buvard = v.Buvard - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 1 && v.FourTout <= 2)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
- }
- v.Buvard = v.Buvard - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 2 && v.FourTout <= 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
- }
- v.Buvard = v.Buvard - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tT Mort Pove Con Gober %f De Buvard C'Est Vraiment STUPIDE",v.FourTout);
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTu En A Tellement Lecher Que Tu Devien De La Meme Couleur Que Ce Que Ta Lecher");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
- }
- v.ArgentBanque = 0;
- v.Cash = 0;
- v.Weed = 0;
- v.Mush = 0;
- v.Hash = 0;
- v.Buvard = 0;
- getch();
- return 0;
- }
- return 0;
- }
- int GMush(Variable& v)
- {
- v.FourTout = 0;
- system("cls");
- printf("\n\n\n\t\t\t\tMIAM MIAM MUSH !!! :P");
- printf("\n\nCombien de Gramme Vouler Vous Manger ? : ");
- cin >> v.FourTout;
- if(v.FourTout > 0 && v.FourTout <= 1)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tHummmmmmmmmm Lui I goutais L'a Marde En Criss");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
- }
- v.Mush = v.Mush - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 1 && v.FourTout <= 2)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
- }
- v.Mush = v.Mush - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 2 && v.FourTout <= 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
- }
- v.Mush = v.Mush - v.FourTout;
- getch();
- return 0;
- }
- if(v.FourTout > 3)
- {
- int X = Hasard(3);
- if(X == 0)
- {
- printf("\n\n\n\t\tT Mort Pove Con Gober %f G C'Est Vraiment STUPIDE",v.FourTout);
- }
- if(X == 1)
- {
- printf("\n\n\n\t\tTu En A Tellement Manger Qui En A Qui Vont te Pousser Dans Le Frond");
- }
- if(X == 2)
- {
- printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
- }
- v.ArgentBanque = 0;
- v.Cash = 0;
- v.Weed = 0;
- v.Mush = 0;
- v.Hash = 0;
- v.Buvard = 0;
- getch();
- return 0;
- }
- return 0;
- }
- int Acheter(Variable& v)
- {
- v.FourTout = 0;
- system("CLS");
- printf("\n\t\t\tACHETER\n\n\n");
- printf("1- Weed 1g = 10$\n");
- printf("2- Mush 1g = 15$\n");
- printf("3- Hash 1g = 20$\n");
- printf("4- Buvard 1bu = 30$\n");
- printf("Que Vouler Vous Acheter ? : ");
- cin >> v.FourTout;
- if(Hasard(100) <= (5 - v.AutoDefAcheter))
- {
- system("CLS");
- printf("\n\n\n\n\t\t\tLOSER TU VIEN DE TE FAIR VOLER TON CASH :P");
- v.Cash = 0;
- getch();
- return 0;
- }
- if(v.FourTout == 1)
- {
- printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.Equivalance(10) > v.Cash)
- {
- system("CLS");
- printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
- getch();
- exit(-1);
- }
- v.Weed = v.Weed + v.FourTout;
- v.Cash = v.Cash - v.Equivalance(10);
- return 0;
- }
- if(v.FourTout == 2)
- {
- printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.Equivalance(15) > v.Cash)
- {
- system("CLS");
- printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
- getch();
- exit(-1);
- }
- v.Mush = v.Mush + v.FourTout;
- v.Cash = v.Cash - v.Equivalance(15);
- return 0;
- }
- if(v.FourTout == 3)
- {
- printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.Equivalance(20) > v.Cash)
- {
- system("CLS");
- printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
- getch();
- return 0;
- }
- v.Hash = v.Hash + v.FourTout;
- v.Cash = v.Cash - v.Equivalance(20);
- return 0;
- }
- if(v.FourTout == 4)
- {
- printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.Equivalance(30) > v.Cash)
- {
- system("CLS");
- printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
- getch();
- return 0;
- }
- v.Buvard = v.Buvard + v.FourTout;
- v.Cash = v.Cash - v.Equivalance(30);
- return 0;
- }
- return 0;
- }
- int Vendre(Variable& v)
- {
- v.FourTout = 0;
- system("CLS");
- printf("\n\t\t\tVENDRE\n\n\n");
- printf("1- Weed\n");
- printf("2- Mush\n");
- printf("3- Hash\n");
- printf("4- Buvard\n");
- printf("Que Vouler Vous Vendre ? : ");
- cin >> v.FourTout;
- if(Hasard(100) <= (5 - v.AutoDefAcheter))
- {
- system("CLS");
- printf("\n\n\n\n\t\t\tPOLICE !!!!\n\ttu vien de te faire saisir toute ton WEED par la police");
- v.Cash = 0;
- getch();
- return 0;
- }
- if(v.FourTout == 1)
- {
- printf("\n\n\n 1g = 15$\n");
- printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.FourTout > v.Weed)
- {
- system("CLS");
- printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
- getch();
- return 0;
- }
- v.Weed = v.Weed - v.FourTout;
- v.Cash = v.Cash + v.Equivalance(15);
- return 0;
- }
- if(v.FourTout == 2)
- {
- printf("\n\n\n 1g = 20$\n");
- printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.FourTout > v.Weed)
- {
- system("CLS");
- printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
- getch();
- return 0;
- }
- v.Mush = v.Mush - v.FourTout;
- v.Cash = v.Cash + v.Equivalance(20);
- return 0;
- }
- if(v.FourTout == 3)
- {
- printf("\n\n\n 1g = 30$\n");
- printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.FourTout > v.Weed)
- {
- system("CLS");
- printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
- getch();
- return 0;
- }
- v.Hash = v.Hash - v.FourTout;
- v.Cash = v.Cash + v.Equivalance(30);
- return 0;
- }
- if(v.FourTout == 4)
- {
- printf("\n\n\n 1g = 40$\n");
- printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
- cin >> v.FourTout;
- if(v.FourTout <= 0 || v.FourTout > v.Weed)
- {
- system("CLS");
- printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
- getch();
- exit(-1);
- }
- v.Buvard = v.Buvard - v.FourTout;
- v.Cash = v.Cash + v.Equivalance(40);
- return 0;
- }
- return 0;
- }
// ------------------------------------ //
// - - //
// - Programme cree par : WaFFel - //
// - Cree le : 24/11/2002 - //
// - Nom du Programme : WeedGame - //
// - - //
// ------------------------------------ //
#include <windows.h>
#include <stdio.h>
#include <iostream.h>
#include <conio.h>
class Variable
{
public :
int Jour;
float AutoDefAcheter;
float AutoDefVendre;
float Weed;
float Mush;
float Buvard;
float Hash;
float Cash;
float ArgentBanque;
float FourTout;
float Equivalance(int Y)
{
float X = FourTout * Y;
return X;
}
unsigned int Roco;
unsigned int Alex;
unsigned int Jean;
int Enemie(int X)
{
if(X==1)
{
Roco = Roco + 100;
Alex = Alex + 100;
Jean = Jean + 100;
}
Roco = Roco + 10;
Alex = Alex + 20;
Jean = Jean + 15;
return 0;
}
};
int Vendre(Variable& v);
int FHash(Variable& v);
int Hasard(int Y);
int GMush(Variable& v);
int Dormir(Variable& v);
int Total(Variable& v);
void Game(Variable& v);
int AutoDef(Variable& v);
int Banque(Variable& v);
int GBuvard(Variable& v);
int FWeed(Variable& v);
int Acheter(Variable& v);
void main(void)
{
Variable v;
v.Jour = 1;
v.AutoDefAcheter = 0;
v.AutoDefVendre = 0;
v.Weed = 5;
v.Mush = 1;
v.Buvard = 1;
v.Hash = 0.5;
v.Cash = 5;
v.ArgentBanque = 20;
v.FourTout = 0;
v.Alex = 0;
v.Jean = 0;
v.Roco = 0;
Game(v);
}
int Hasard(int Y)
{
int X = rand() % Y;
return X;
}
int Dormir(Variable& v)
{
system("CLS");
printf("\n\n\n\n\n\n\nZzZzZzZzZzZzZzzz....");
v.Jour++;
if(v.Jour == 7)
{
v.Jour = 1;
system("CLS");
printf("\n\n\n\n\n\nFISTON !!! Voici Ton Argent De Poche !");
v.Cash = v.Cash + 5;
}
getch();
return 0;
}
int Total(Variable& v)
{
system("CLS");
printf("\n\t\t\tTOTAL\n\n\n");
printf("Cash : %f $\n",v.Cash);
printf("Weed : %f g\n",v.Weed);
printf("Hash : %f g\n",v.Hash);
printf("Mush : %f g\n",v.Mush);
printf("Buvard : %f Bu\n",v.Buvard);
printf("Jour : %i\n",v.Jour);
printf("Argent en Banque : %f $\n",v.ArgentBanque);
printf("\nPouvoir : \nRoco : %i $\nAlex : %i $\nJean : %i $",v.Roco,v.Alex,v.Jean);
getch();
return 0;
}
int AutoDef(Variable& v)
{
v.FourTout = 0;
system("cls");
printf("\n\t\t\tClub D'Auto Defence\n");
printf("1- BaseBall Bat (+2 chanche contre le vole) : 100$\n");
printf("2- Taser (+4 chanche contre le vole) : 200$\n");
printf("3- Pistolet (+2 chanche contre la police) : 300$\n");
printf("4- Mitraillette (+4 chanche contre la police) : 1000$\n");
printf("\nCHOIX : ");
cin >> v.FourTout;
if(v.FourTout == 1 || v.FourTout == 2)
{
if(v.AutoDefAcheter == 4)
{
system("cls");
printf("Vous Ne Pouver Plus Acheter des Item Contre Le Vole\n");
getch();
return 0;
}
if((v.FourTout == 1 && v.Cash < 100) || (v.FourTout == 2 && v.Cash < 200))
{
system("cls");
printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
getch();
return 0;
}
if(v.FourTout == 1){v.FourTout = 100;}
if(v.FourTout == 2){v.FourTout = 200;}
v.Cash = v.Cash - v.FourTout;
if(v.FourTout == 100){v.FourTout = 2;}
if(v.FourTout == 200){v.FourTout = 4;}
v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
}
if(v.FourTout == 3 || v.FourTout == 4)
{
if(v.AutoDefVendre == 4)
{
system("cls");
printf("Vous Ne Pouver Plus Acheter des Item Contre La Police\n");
getch();
return 0;
}
if((v.FourTout == 3 && v.Cash < 300) || (v.FourTout == 4 && v.Cash < 1000))
{
system("cls");
printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
getch();
return 0;
}
if(v.FourTout == 3){v.FourTout = 300;}
if(v.FourTout == 4){v.FourTout = 1000;}
v.Cash = v.Cash - v.FourTout;
if(v.FourTout == 300){v.FourTout = 2;}
if(v.FourTout == 1000){v.FourTout = 4;}
v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
}
return 0;
}
int Banque(Variable& v)
{
v.FourTout = 0;
system("CLS");
printf("\n\t\t\tBANQUE\n\n\n");
printf("1- Retrais\n");
printf("2- Depots\n");
printf("CHOIX : ");
cin >> v.FourTout;
if(v.FourTout == 1)
{
v.FourTout = 0;
printf("\n\n\nCombien Voulez Vous Retirer ? : ");
cin >> v.FourTout;
if(v.FourTout > v.ArgentBanque || v.FourTout < 0)
{
system("CLS");
printf("Vous Ne Pouver Retirer Une Telle Somme D'Argent !");
getch();
return 0;
}
v.ArgentBanque = v.ArgentBanque - v.FourTout;
v.Cash = v.Cash + v.FourTout;
}
if(v.FourTout == 2)
{
v.FourTout = 0;
printf("Combien Vouler Vous Deposer ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.FourTout > v.Cash)
{
system("CLS");
printf("Vous Ne Pouver Deposer Une Telle Somme D'Argent !");
getch();
return 0;
}
v.ArgentBanque = v.ArgentBanque + v.FourTout;
v.Cash = v.Cash - v.FourTout;
}
return 0;
}
int FHash(Variable& v)
{
v.FourTout = 0;
system("cls");
printf("\n\n\n\t\t\t\tFUMER :P HASH !!!");
printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
cin >> v.FourTout;
if(v.FourTout > 0 && v.FourTout <= 1)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
}
if(X == 1)
{
printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
}
v.Hash = v.Hash - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 1 && v.FourTout <= 2)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
}
if(X == 1)
{
printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
}
v.Hash = v.Hash - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 2 && v.FourTout <= 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
}
if(X == 1)
{
printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
}
if(X == 2)
{
printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
}
v.Hash = v.Hash - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
}
if(X == 1)
{
printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
}
if(X == 2)
{
printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
}
v.ArgentBanque = 0;
v.Cash = 0;
v.Weed = 0;
v.Mush = 0;
v.Hash = 0;
v.Buvard = 0;
getch();
return 0;
}
return 0;
}
int FWeed(Variable& v)
{
v.FourTout = 0;
system("cls");
printf("\n\n\n\t\t\t\tFUMER :P Marijuana !!!");
printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
cin >> v.FourTout;
if(v.FourTout > 0 && v.FourTout <= 1)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
}
if(X == 1)
{
printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
}
v.Weed = v.Weed - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 1 && v.FourTout <= 2)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
}
if(X == 1)
{
printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
}
v.Weed = v.Weed - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 2 && v.FourTout <= 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
}
if(X == 1)
{
printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
}
if(X == 2)
{
printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
}
v.Weed = v.Weed - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
}
if(X == 1)
{
printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
}
if(X == 2)
{
printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
}
v.ArgentBanque = 0;
v.Cash = 0;
v.Weed = 0;
v.Mush = 0;
v.Hash = 0;
v.Buvard = 0;
getch();
return 0;
}
return 0;
}
void Game(Variable& v)
{
for(;;)
{
if(v.ArgentBanque == 0 && v.Cash == 0 && v.Weed == 0 && v.Buvard == 0 && v.Hash == 0 && v.Mush == 0)
{
break;
}
v.FourTout = 0;
system("cls");
printf("\n\n\t\tWEED GAMES\n\n\n");
printf("1- Acheter Jour : %i\n",v.Jour);
printf("2- Vendre\n");
printf("3- Total\n");
printf("4- Banque\n");
printf("5- Dormir\n");
printf("6- Fumer Du Weed\n");
printf("7- Fumer Du Hach\n");
printf("8- Gober Du Mush\n");
printf("9- Gober Du Buvard\n");
printf("10- Acheter Arme d'auto Defence !\n");
printf("11- Introduction\n");
printf("12- Quitter\n");
printf("\n\nCHOIX : ");
cin >> v.FourTout;
if(v.FourTout > 11 || v.FourTout <= 0){break;}
if(v.FourTout == 0.321){v.Cash = 999999;v.FourTout=99999;}
if(v.FourTout == 1) {v.Enemie(0); Acheter(v);v.FourTout=99999;}
if(v.FourTout == 2) {v.Enemie(0); Vendre(v); v.FourTout=99999;}
if(v.FourTout == 3) {v.Enemie(0); Total(v); v.FourTout=99999;}
if(v.FourTout == 4) {v.Enemie(0); Banque(v); v.FourTout=99999;}
if(v.FourTout == 5) {v.Enemie(1); Dormir(v); v.FourTout=99999;}
if(v.FourTout == 6) {v.Enemie(0); FWeed(v); v.FourTout=99999;}
if(v.FourTout == 7) {v.Enemie(0); FHash(v); v.FourTout=99999;}
if(v.FourTout == 8) {v.Enemie(0); GMush(v); v.FourTout=99999;}
if(v.FourTout == 9) {v.Enemie(0); GBuvard(v);v.FourTout=99999;}
if(v.FourTout == 10){v.Enemie(0); AutoDef(v);v.FourTout=99999;}
if(v.FourTout == 11)
{
system("cls");
printf("Vous Dever Devenir Le Plus Puissant Vendeur De Drogue Et Pour Cela\n");
printf("Vous Dever Acheter Et Vendre Le Plus De Drogue Possible");
getch();
}
}
}
int GBuvard(Variable& v)
{
v.FourTout = 0;
system("cls");
printf("\n\n\n\t\t\t\tLecher Les Lecher Les !!! :P");
printf("\n\nCombien de Carton Vouler Vous Lecher ? : ");
cin >> v.FourTout;
if(v.FourTout > 0 && v.FourTout <= 1)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
}
if(X == 1)
{
printf("\n\n\n\t\tHummmmmmmmmm Lui I Goutais eeee Tu Ten Rapelle Pu ce qui Goutais");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
}
v.Buvard = v.Buvard - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 1 && v.FourTout <= 2)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
}
if(X == 1)
{
printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
}
v.Buvard = v.Buvard - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 2 && v.FourTout <= 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
}
if(X == 1)
{
printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
}
if(X == 2)
{
printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
}
v.Buvard = v.Buvard - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tT Mort Pove Con Gober %f De Buvard C'Est Vraiment STUPIDE",v.FourTout);
}
if(X == 1)
{
printf("\n\n\n\t\tTu En A Tellement Lecher Que Tu Devien De La Meme Couleur Que Ce Que Ta Lecher");
}
if(X == 2)
{
printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
}
v.ArgentBanque = 0;
v.Cash = 0;
v.Weed = 0;
v.Mush = 0;
v.Hash = 0;
v.Buvard = 0;
getch();
return 0;
}
return 0;
}
int GMush(Variable& v)
{
v.FourTout = 0;
system("cls");
printf("\n\n\n\t\t\t\tMIAM MIAM MUSH !!! :P");
printf("\n\nCombien de Gramme Vouler Vous Manger ? : ");
cin >> v.FourTout;
if(v.FourTout > 0 && v.FourTout <= 1)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
}
if(X == 1)
{
printf("\n\n\n\t\tHummmmmmmmmm Lui I goutais L'a Marde En Criss");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
}
v.Mush = v.Mush - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 1 && v.FourTout <= 2)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
}
if(X == 1)
{
printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
}
if(X == 2)
{
printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
}
v.Mush = v.Mush - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 2 && v.FourTout <= 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
}
if(X == 1)
{
printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
}
if(X == 2)
{
printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
}
v.Mush = v.Mush - v.FourTout;
getch();
return 0;
}
if(v.FourTout > 3)
{
int X = Hasard(3);
if(X == 0)
{
printf("\n\n\n\t\tT Mort Pove Con Gober %f G C'Est Vraiment STUPIDE",v.FourTout);
}
if(X == 1)
{
printf("\n\n\n\t\tTu En A Tellement Manger Qui En A Qui Vont te Pousser Dans Le Frond");
}
if(X == 2)
{
printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
}
v.ArgentBanque = 0;
v.Cash = 0;
v.Weed = 0;
v.Mush = 0;
v.Hash = 0;
v.Buvard = 0;
getch();
return 0;
}
return 0;
}
int Acheter(Variable& v)
{
v.FourTout = 0;
system("CLS");
printf("\n\t\t\tACHETER\n\n\n");
printf("1- Weed 1g = 10$\n");
printf("2- Mush 1g = 15$\n");
printf("3- Hash 1g = 20$\n");
printf("4- Buvard 1bu = 30$\n");
printf("Que Vouler Vous Acheter ? : ");
cin >> v.FourTout;
if(Hasard(100) <= (5 - v.AutoDefAcheter))
{
system("CLS");
printf("\n\n\n\n\t\t\tLOSER TU VIEN DE TE FAIR VOLER TON CASH :P");
v.Cash = 0;
getch();
return 0;
}
if(v.FourTout == 1)
{
printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.Equivalance(10) > v.Cash)
{
system("CLS");
printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
getch();
exit(-1);
}
v.Weed = v.Weed + v.FourTout;
v.Cash = v.Cash - v.Equivalance(10);
return 0;
}
if(v.FourTout == 2)
{
printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.Equivalance(15) > v.Cash)
{
system("CLS");
printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
getch();
exit(-1);
}
v.Mush = v.Mush + v.FourTout;
v.Cash = v.Cash - v.Equivalance(15);
return 0;
}
if(v.FourTout == 3)
{
printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.Equivalance(20) > v.Cash)
{
system("CLS");
printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
getch();
return 0;
}
v.Hash = v.Hash + v.FourTout;
v.Cash = v.Cash - v.Equivalance(20);
return 0;
}
if(v.FourTout == 4)
{
printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.Equivalance(30) > v.Cash)
{
system("CLS");
printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
getch();
return 0;
}
v.Buvard = v.Buvard + v.FourTout;
v.Cash = v.Cash - v.Equivalance(30);
return 0;
}
return 0;
}
int Vendre(Variable& v)
{
v.FourTout = 0;
system("CLS");
printf("\n\t\t\tVENDRE\n\n\n");
printf("1- Weed\n");
printf("2- Mush\n");
printf("3- Hash\n");
printf("4- Buvard\n");
printf("Que Vouler Vous Vendre ? : ");
cin >> v.FourTout;
if(Hasard(100) <= (5 - v.AutoDefAcheter))
{
system("CLS");
printf("\n\n\n\n\t\t\tPOLICE !!!!\n\ttu vien de te faire saisir toute ton WEED par la police");
v.Cash = 0;
getch();
return 0;
}
if(v.FourTout == 1)
{
printf("\n\n\n 1g = 15$\n");
printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.FourTout > v.Weed)
{
system("CLS");
printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
getch();
return 0;
}
v.Weed = v.Weed - v.FourTout;
v.Cash = v.Cash + v.Equivalance(15);
return 0;
}
if(v.FourTout == 2)
{
printf("\n\n\n 1g = 20$\n");
printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.FourTout > v.Weed)
{
system("CLS");
printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
getch();
return 0;
}
v.Mush = v.Mush - v.FourTout;
v.Cash = v.Cash + v.Equivalance(20);
return 0;
}
if(v.FourTout == 3)
{
printf("\n\n\n 1g = 30$\n");
printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.FourTout > v.Weed)
{
system("CLS");
printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
getch();
return 0;
}
v.Hash = v.Hash - v.FourTout;
v.Cash = v.Cash + v.Equivalance(30);
return 0;
}
if(v.FourTout == 4)
{
printf("\n\n\n 1g = 40$\n");
printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
cin >> v.FourTout;
if(v.FourTout <= 0 || v.FourTout > v.Weed)
{
system("CLS");
printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
getch();
exit(-1);
}
v.Buvard = v.Buvard - v.FourTout;
v.Cash = v.Cash + v.Equivalance(40);
return 0;
}
return 0;
}
Conclusion
a+
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
UNE JOLIE-HORLOGE ET PAS QU'UN PEU !UNE JOLIE-HORLOGE ET PAS QU'UN PEU ! par neodante
Pour les possesseurs d'iPhone, ça y est Bijin Tokei - qui se traduit littéralement en Français par " Jolie Horloge " - est arrivé et GRATUITEMENT s'il vous plaît ! Après la version Tokyo, Hokkaido, night club, racing, Gal, "pour les mademoiselles'", . voi...
Cliquez pour lire la suite de l'article par neodante TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE par orion
Comme de nombreux geek, je suis un grand amateur de série TV et je rate régulièrement des épisodes de mes séries préférés. Une solution s'offre à vous avec ce merveilleux site : Tv Gorge - www.tvgorge.com Moteur de recherche à l'appui, vous pouvez ...
Cliquez pour lire la suite de l'article par orion TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Vincent Bellet et Baptiste Giraudier La BI dans SharePoint 2010, Les nouveaux services d'application dans SP2010 et SQL Server Reporting services 2008 R2. La BI dans SharePoint est généralisée pour tous afin de permettre à tous les coll...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : WIN APIRE : WIN API par racpp
Cliquez pour lire la suite par racpp WIN APIWIN API par omarino_007
Cliquez pour lire la suite par omarino_007
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|