Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- // [FS]Pack De Armas //
- ////////////////////////////////////////////////////////////////////////////////
- // Autor: Rapha3L //
- // Versão: 1.0 //
- // Ultima Modificação: 16-06-2013 //
- ////////////////////////////////////////////////////////////////////////////////
- // Créditos: SA-MP Team/Wiki //
- ////////////////////////////////////////////////////////////////////////////////
- //---[Includes]---//
- #include <a_samp>
- #include <zcmd>
- //---[ID's Armas]---//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 189)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 24, 500);
- GivePlayerWeapon(playerid, 25, 500);
- GivePlayerWeapon(playerid, 28, 500);
- GivePlayerWeapon(playerid, 34, 100);
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 23, 500);
- GivePlayerWeapon(playerid, 27, 500);
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerWeapon(playerid, 33, 500);
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 22, 500);
- GivePlayerWeapon(playerid, 26, 500);
- GivePlayerWeapon(playerid, 32, 500);
- GivePlayerWeapon(playerid, 30, 500);
- }
- }
- }
- }
- return 1;
- }
- //---[Comando + Dialog]---//
- CMD:armas(playerid,params[])
- {
- ResetPlayerWeapons(playerid);
- ShowPlayerDialog(playerid, 189, DIALOG_STYLE_LIST, "Pack's de Armas", "{A52A2A}Pack #1: {1E90FF}Deagle, Shotgun, Micro Uzi & Sniper\n{A52A2A}Pack #2: {1E90FF}Silenced 9mm, Combat Shotgun, M4 & Country Rifle\n{A52A2A}Pack #3: {1E90FF}9mm, Sawnoff, AK-47 & Tec-9", "Escolher", "Cancelar");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement