Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=====================Keapon V 3.0========================*\
- |===================Fait par KonVict92x=====================|
- |===========================================================|
- |===========================================================|
- |===========================================================|
- |===========================================================|
- */
- #include <a_samp>
- #define COLOR_ORANGE 0xE27507FF
- #define DIALOGWEAPONS1 1 //define du Dialogue qui affichera les catégories
- #define DIALOGWEAPONSAB 2 //define du Dialogue n°1 nommé "Arme Blanche"
- #define DIALOGWEAPONSP 3 //define du Dialogue n°2 nommé "Pistolet"
- #define DIALOGWEAPONSM 4 //define du Dialogue n°3 nommé "Mitrailleurs"
- #define DIALOGWEAPONSFP 5 //define du Dialogue n°4 nommé "Fusil a Pompe"
- #define DIALOGWEAPONSSPEC 6 //define du Dialogue n°5 nommé "Spécial"
- #if defined FILTERSCRIPT
- #endif
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("----------Keapon par KonVict92x---------");
- print("-----------------V 3.0-----------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/armes", cmdtext, true, 10) == 0 || strcmp("/arme",cmdtext,true,10)== 0 || strcmp("/wep",cmdtext,true,10) ==0)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Catégories", "Arme Blanche\nPistolet\nMitrailleurs\nFusil a Pompe\nSpécial", "Ouvrir", "Quitter");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- if(listitem == 0) //Catégorie 1, "Arme Blanche"
- {
- ShowPlayerDialog(playerid, DIALOGWEAPONSAB, DIALOG_STYLE_LIST, "Arme Blanche", "Poing Américain\nBatte de Baseball\nPelle\nCouteau\nKatana", "Prendre", "Quitter");
- }
- if(listitem == 1) //Catégorie 2, "Pistolet"
- {
- ShowPlayerDialog(playerid, DIALOGWEAPONSP, DIALOG_STYLE_LIST, "Pistolets", "9mm\n9mm Silencieux\nDesert Eagle", "Prendre", "Quitter");
- }
- if(listitem == 2) //Catégorie 3, "Mitrailleurs"
- {
- ShowPlayerDialog(playerid, DIALOGWEAPONSM, DIALOG_STYLE_LIST, "Mitrailleurs", "MiniUzi\nTec9\nMP5\nAK47\nM4", "Prendre", "Quitter");
- }
- if(listitem == 3) //Catégorie 4, "Fusil a Pompe"
- {
- ShowPlayerDialog(playerid, DIALOGWEAPONSFP, DIALOG_STYLE_LIST, "Fusil a Pompe", "Fusil a Pompe (Classique)\n Fusil a Canon Scié\nFusil de Combat", "Prendre", "Quitter");
- }
- if(listitem == 4) //Catégorie 4, "Spécial"
- {
- ShowPlayerDialog(playerid, DIALOGWEAPONSSPEC, DIALOG_STYLE_LIST, "Spécial", "RPG\n RPG Téléguidé\n C4 (+ detonateur)\nGrenade\nMinigun\nLance Flamme\nSniper\nCocktail Molotov\nExtincteur\nBombe Tag", "Prendre", "Quitter");
- }
- }
- return 1;
- }
- if(dialogid == DIALOGWEAPONSAB) //Catégorie "Arme Blanche"
- {
- if(response)
- {
- if(listitem == 0) //Poing Américain
- {
- GivePlayerWeapon(playerid,1,0);
- SendClientMessage(playerid,COLOR_ORANGE,"Vous venez de recevoir un Poing Américain");
- }
- if(listitem == 1) //Batte de Baseball
- {
- GivePlayerWeapon(playerid,5,0);
- SendClientMessage(playerid,COLOR_ORANGE,"Vous venez de recevoir une Batte de Baseball");
- }
- if(listitem == 2) //Pelle
- {
- GivePlayerWeapon(playerid,6,0);
- SendClientMessage(playerid,COLOR_ORANGE,"Vous venez de recevoir une Pelle");
- }
- if(listitem == 3) //Couteau
- {
- GivePlayerWeapon(playerid,4,0);
- SendClientMessage(playerid,COLOR_ORANGE,"Vous venez de recevoir un Couteau");
- }
- if(listitem == 4) //Katana
- {
- GivePlayerWeapon(playerid,8,0);
- SendClientMessage(playerid,COLOR_ORANGE,"Vous venez de recevoir un Katana");
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement