Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Este [FS] Contem todas as armas do samp, todas mesmo, é feito em um dialog, esta é a 1º versão
- Porque eu fiz este [FS] na escola ueahuaeheahu, e depois irei melhorar, e será lançada outra versão ^^*/
- /////////////////////////////////////
- // __ _ _____ _______ __ //
- // | _| | | | _ | | _____| |_ | //
- // || | | | |_| | | |_____ || //
- // || | | | ___| |_____ | || //
- // ||_ | | | | _____| | _|| //
- // |__| |_| |_| |_______| |__| //
- // //
- //[(I)nteliggent(P)rogramming(S)tyle]
- // [Todos os direitos reservados] ///
- // Feito Por: [iPs]GonçaloRebelo ///
- // Agradecimentos: [iPs]-Team ///
- /////////////////////////////////////
- /////////////////////////////////////
- // Não Retirar os Creditos! ///
- // Visite-nos //
- //Forum: www.ips-team.forumeiros.com/
- //Blog: www.ips-team.blogspot.com////
- /////////////////////////////////////
- #include <a_samp>
- #define Loja 1
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Loja de armas By: [iPs]GonçaloRebelo.");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/comprararmas", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Loja de Armas Virtual", "Armas Brancas\nPistolas\nSub-Metralhadoras\Rifles\nExplosivos","Ver","Sair");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Loja)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Armas Brancas", "Soco Ingles\nFaca\nKatana\nCacetete\nTaco de Golf\nTaco de Baseball\nMoto-Serra","Comprar","Sair");
- return 1;
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Pistolas", "Colt\nColt Com Silenciadora\nDesertEagle","Comprar","Sair");
- return 1;
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Sub-Metralhadoras", "MP5\nUZI\nTEC-9","Comprar","Sair");
- return 1;
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Rifles", "AK-47\nM4\nCountry Rifle\nSniper Rifle","Comparar","Sair");
- return 1;
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, Loja, DIALOG_STYLE_LIST, "[FS]Explosivos", "Granada\nSatchel\nMolotov\nGranada de Gás\nBazooka","Sair");
- return 1;
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment