Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dialogGuardar(playerid){
- ShowPlayerDialog(playerid, 305, DIALOG_STYLE_MSGBOX, " ",
- "{00CCFF} Você quer guardar uma arma neste slot?\n\
- {00CCFF} OBS: Você precisa ter uma arma com você!",
- "Sim", "Voltar");
- SetPVarInt(playerid, "guardando", 1);
- CancelSelectTextDraw(playerid);
- }
- //-------------------------------------------------------
- dialogGuardarPM(playerid){
- ShowPlayerDialog(playerid, 307, DIALOG_STYLE_MSGBOX, " ",
- "{00CCFF} Você quer guardar uma arma neste slot?\n\
- {00CCFF} OBS: Você precisa ter uma arma com você!",
- "Sim", "Voltar");
- SetPVarInt(playerid, "guardando", 1);
- CancelSelectTextDraw(playerid);
- }
- //-------------------------------------------------------
- dialogHelp(playerid){
- MEGAString[0]=EOS;
- strcat(MEGAString, "{FFFFFF} Sistema de Inventário onde você pode\n");
- strcat(MEGAString, "{FFFFFF} guardar, pegar ou descartar suas armas ou itens\n\n");
- strcat(MEGAString, "{FFFFFF}x{A0A0A0} Para usar/guardar uma arma/item, selecione ela e vá em ''usar'' e coloque usar/guardar\n");
- strcat(MEGAString, "{FFFFFF}x{A0A0A0} Para descartar uma arma, selecione ela e vá em ''usar'' e coloque dropar\n");
- ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "Ajuda Inventario", MEGAString, "Informado","");
- }
- //------------------------------------------------------
- countWeapons(playerid){
- new count, weap, ammo;
- for(new x = 1; x != 13; x++){
- GetPlayerWeaponData(playerid, x, weap, ammo);
- if(weap && ammo){
- count++;
- }
- }
- return count;
- }
- //------------------------------------------------------
- dialogArmas(playerid){
- if(!countWeapons(playerid))
- return SendClientMessage(playerid, COLOR_YELLOW, "*Você não tem uma arma com você."), CancelSelectTextDraw(playerid),SelectTextDraw(playerid, 0xAAAAAAFF);
- new Str[95],
- weap,
- ammo;
- MEGAString[0] = EOS;
- for(new x = 1; x != 13; x++){
- GetPlayerWeaponData(playerid, x, weap, ammo);
- if(weap && ammo){
- format(Str, 95, "{FFFFFF}Arma: {A0A0A0}%s {FFFFFF}Balas: {A0A0A0}%03d\n", GunNames[weap], ammo);
- strcat(MEGAString, Str);
- }else{
- strcat(MEGAString, "{FFFFFF}Arma: {A0A0A0}-------- {FFFFFF}Balas: {A0A0A0}---\n");
- }
- }
- ShowPlayerDialog(playerid, 306, DIALOG_STYLE_LIST, "Escolha a arma para guardar", MEGAString, "Guardar", "Sair");
- return 1;
- }
- dialogArmasPM(playerid){
- if(!countWeapons(playerid))
- return SendClientMessage(playerid, COLOR_YELLOW, "*Você não tem uma arma com você."), SelectTextDraw(playerid, 0xAAAAAAFF);
- new Str[95],
- weap,
- ammo;
- MEGAString[0] = EOS;
- for(new x = 1; x != 13; x++){
- GetPlayerWeaponData(playerid, x, weap, ammo);
- if(weap && ammo){
- format(Str, 95, "{FFFFFF}Arma: {A0A0A0}%s {FFFFFF}Balas: {A0A0A0}%03d\n", GunNames[weap], ammo);
- strcat(MEGAString, Str);
- }else{
- strcat(MEGAString, "{FFFFFF}Arma: {A0A0A0}-------- {FFFFFF}Balas: {A0A0A0}---\n");
- }
- }
- ShowPlayerDialog(playerid, 308, DIALOG_STYLE_LIST, "Escolha a arma para guardar", MEGAString, "Guardar", "Sair");
- return 1;
- }
- stock RemoveVendingMachines(playerid)
- {
- // Remove 24/7 machines
- RemoveBuildingForPlayer(playerid, 1776, -33.8750, -186.7656, 1003.6328, 0.25);
- RemoveBuildingForPlayer(playerid, 1775, -32.4453, -186.6953, 1003.6328, 0.25);
- // Remove all other machines
- for(new i = 0; i < 43; i++)
- {
- RemoveBuildingForPlayer(playerid, 955, VMachines[i][0], VMachines[i][1], VMachines[i][2], 0.50);
- RemoveBuildingForPlayer(playerid, 956, VMachines[i][0], VMachines[i][1], VMachines[i][2], 0.50);
- }
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement