28.11.2014, 14:59
Queria saber como colocar um local exato para a pessoa usar o cmd, e ao inves do CMD abrir quando apertar F ou Enter
Local: -274.4892,1880.0524,669.4497,145.4247
Codigo
Local: -274.4892,1880.0524,669.4497,145.4247
Codigo
Код:
//////////////////////////////////////////////////////////////////////////////// // [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:COMANDOAQUI(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; }