Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- #include <a_samp>
- #define ITEMMENU 567
- #define PICKUP 1239// 1239 pickup i | 1318 arrow
- //------------------------------------------------------------------------------
- #define COLOR_AMARILLO 0xdad83bff
- #define COLOR_ROJO 0xda3b3bff
- #define COLOR_VERDE 0xa5cf67ff
- #define COLOR_CELESTE 0x9be3f1ff
- #define COLOR_AZUL 0x5a69b4ff
- #define COLOR_CAFE 0xF5DEB3AA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_DUDA 0x8f58a2ff
- #define COLOR_INFO 0xeee756ff
- #define COLOR_VEHICULO 0x5cfa52ff
- #define COLOR_NADA 0xfffefe22
- #define COLOR_ADMIN 0x00ff6cff
- #define COLOR_KICK 0xDABB3EAA
- #define COLOR_ROJO2 0xFF6347AA
- #define COLOR_AZUL2 0x33CCFFAA
- #define COLOR_VERDE2 0x9ACD32AA
- #define COLOR_VERDE3 0x4b7d4eff
- #define COLOR_CELESTE2 0x7ad4bcff
- //------------------------------------------------------------------------------
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- //------------------------------------------------------------------------------
- main()
- {
- print("\n-------------------------------------");
- print(" CShop [Armas-Items-Accesorios] ");
- print(" by CaCoby ");
- print("-------------------------------------\n");
- }
- //------------------------------------------------------------------------------
- public OnFilterScriptInit()
- {
- //AmmuNation
- AddStaticPickup(PICKUP,1,295.3706,-80.7968,1001.5156,0);
- AddStaticPickup(PICKUP,1,295.2078,-38.5138,1001.5156,0);
- AddStaticPickup(PICKUP,1,290.0471,-109.7813,1001.5156,0);
- AddStaticPickup(PICKUP,1,312.3357,-166.1313,999.6010,0);
- AddStaticPickup(PICKUP,1,314.2549,-134.1494,999.6016,0);
- //24/7
- AddStaticPickup(PICKUP,1,-23.2666,-55.6207,1003.5469,0);
- AddStaticPickup(PICKUP,1,-28.0966,-89.9442,1003.5469,0);
- AddStaticPickup(PICKUP,1,-10.7299,-178.2628,1003.5469,0);
- AddStaticPickup(PICKUP,1,-29.2871,-185.1264,1003.5469,0);
- AddStaticPickup(PICKUP,1,2.1807,-29.0137,1003.5494,0);
- AddStaticPickup(PICKUP,1,-22.2870,-138.6216,1003.5469,0);
- AddStaticPickup(PICKUP,1,-30.9230,-29.0183,1003.5573,0);
- //Sex Shop
- AddStaticPickup(PICKUP,1,-105.9954,-10.6289,1000.7188,0);
- AddStaticPickup(PICKUP,1,-103.8498,-22.6787,1000.7188,0);
- }
- //------------------------------------------------------------------------------
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/armas", cmdtext, true, 10) == 0)
- {
- if(PlayerToPoint(1.0,playerid,295.3706,-80.7968,1001.5156) || PlayerToPoint(1.0,playerid,295.2078,-38.5138,1001.5156) || PlayerToPoint(1.0,playerid,290.0471,-109.7813,1001.5156) || PlayerToPoint(1.0,playerid,312.3357,-166.1313,999.6010) || PlayerToPoint(1.0,playerid,314.2549,-134.1494,999.6016))
- {
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- return 1;
- }
- return SendClientMessage(playerid,COLOR_AZUL,"[ ! ] No estas en un Ammu-Nation");
- }
- if (strcmp("/comprar", cmdtext, true, 10) == 0)
- {
- if(PlayerToPoint(1.0,playerid,-23.2666,-55.6207,1003.5469) || PlayerToPoint(1.0,playerid,-28.0966,-89.9442,1003.5469) || PlayerToPoint(1.0,playerid,-10.7299,-178.2628,1003.5469) || PlayerToPoint(1.0,playerid,-29.2871,-185.1264,1003.5469) || PlayerToPoint(1.0,playerid,2.1807,-29.0137,1003.5494) || PlayerToPoint(1.0,playerid,-22.2870,-138.6216,1003.5469)|| PlayerToPoint(1.0,playerid,-30.9230,-29.0183,1003.5573))
- {
- ShowPlayerDialog(playerid, ITEMMENU+1, DIALOG_STYLE_INPUT,"Tienda 24/7","id Item Precio\n\n1 Camara $8000\n2 Cuchillo $2000\n3 Palo de Pool $1000\n4 Flores $500 ","Comprar", "Cancelar");
- return 1;
- }
- return SendClientMessage(playerid,COLOR_VERDE,"[ ! ] No estas en un 24/7");
- }
- if (strcmp("/items", cmdtext, true, 10) == 0)
- {
- if(PlayerToPoint(1.0,playerid,-105.9954,-10.6289,1000.7188) || PlayerToPoint(1.0,playerid,-103.8498,-22.6787,1000.7188))
- {
- ShowPlayerDialog(playerid, ITEMMENU+2, DIALOG_STYLE_INPUT,"SexShop","id Item Precio\n\n1 Dildo $1000\n2 Vibrador Pequeño $1500\n3 Vibrador Grande $2000\n4 Consolador $2000\n","Comprar", "Cancelar");
- return 1;
- }
- return SendClientMessage(playerid,COLOR_ROJO,"[ ! ] No estas en una SexShop");
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == ITEMMENU)
- {
- if(response == 1)
- {
- if(strval(inputtext) == 1)
- {
- if(GetPlayerMoney(playerid) <= 2000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,24,100);
- GivePlayerMoney(playerid, -2000);
- }
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- }
- if(strval(inputtext) == 2)
- {
- if(GetPlayerMoney(playerid) <= 6000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,25,50);
- GivePlayerMoney(playerid, -6000);
- }
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- }
- if(strval(inputtext) == 3)
- {
- if(GetPlayerMoney(playerid) <= 8000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,27,50);
- GivePlayerMoney(playerid, -8000);
- }
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- }
- if(strval(inputtext) == 4)
- {
- if(GetPlayerMoney(playerid) <= 6000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,29,50);
- GivePlayerMoney(playerid, -6000);
- }
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- }
- if(strval(inputtext) == 5)
- {
- if(GetPlayerMoney(playerid) <= 8000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,30,100);
- GivePlayerMoney(playerid, -8000);
- }
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- }
- if(strval(inputtext) == 6)
- {
- if(GetPlayerMoney(playerid) <= 10000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,31,100);
- GivePlayerMoney(playerid, -10000);
- }
- ShowPlayerDialog(playerid,ITEMMENU,DIALOG_STYLE_INPUT,"Ammu-Nation","id Arma Precio\n\n1 Deagle $2000\n2 Escopeta $6000\n3 Combate $8000\n4 Mp5 $6000\n5 Ak47 $8000\n6 M4 $10000","Comprar","Cancelar");
- }
- }
- }
- //------------------------------------------------------------------------------
- if(dialogid == ITEMMENU+1)
- {
- if(response == 1)
- {
- if(strval(inputtext) == 1)
- {
- if(GetPlayerMoney(playerid) <= 8000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,43,50);
- GivePlayerMoney(playerid, -8000);
- }
- ShowPlayerDialog(playerid, ITEMMENU+1, DIALOG_STYLE_INPUT,"Tienda 24/7","id Item Precio\n\n1 Camara $8000\n2 Cuchillo $2000\n3 Palo de Pool $1000\n4 Flores $500 ","Comprar", "Cancelar");
- }
- if(strval(inputtext) == 2)
- {
- if(GetPlayerMoney(playerid) <= 2000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,4,0);
- GivePlayerMoney(playerid, -2000);
- }
- ShowPlayerDialog(playerid, ITEMMENU+1, DIALOG_STYLE_INPUT,"Tienda 24/7","id Item Precio\n\n1 Camara $8000\n2 Cuchillo $2000\n3 Palo de Pool $1000\n4 Flores $500 ","Comprar", "Cancelar");
- }
- if(strval(inputtext) == 3)
- {
- if(GetPlayerMoney(playerid) <= 1000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,7,0);
- GivePlayerMoney(playerid, -1000);
- }
- ShowPlayerDialog(playerid, ITEMMENU+1, DIALOG_STYLE_INPUT,"Tienda 24/7","id Item Precio\n\n1 Camara $8000\n2 Cuchillo $2000\n3 Palo de Pool $1000\n4 Flores $500 ","Comprar", "Cancelar");
- }
- if(strval(inputtext) == 4)
- {
- if(GetPlayerMoney(playerid) <= 500)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,14,0);
- GivePlayerMoney(playerid, -500);
- }
- ShowPlayerDialog(playerid, ITEMMENU+1, DIALOG_STYLE_INPUT,"Tienda 24/7","id Item Precio\n\n1 Camara $8000\n2 Cuchillo $2000\n3 Palo de Pool $1000\n4 Flores $500 ","Comprar", "Cancelar");
- }
- }
- if(dialogid == ITEMMENU+2)
- {
- if(response == 1)
- {
- if(strval(inputtext) == 1)
- {
- if(GetPlayerMoney(playerid) <= 1000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,10,0);
- GivePlayerMoney(playerid, -1000);
- }
- ShowPlayerDialog(playerid, ITEMMENU+2, DIALOG_STYLE_INPUT,"SexShop","id Item Precio\n\n1 Dildo $1000\n2 Vibrador Pequeño $1500\n3 Vibrador Grande $2000\n4 Consolador $2000\n","Comprar", "Cancelar");
- }
- if(strval(inputtext) == 2)
- {
- if(GetPlayerMoney(playerid) <= 1500)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,11,0);
- GivePlayerMoney(playerid, -1500);
- }
- ShowPlayerDialog(playerid, ITEMMENU+2, DIALOG_STYLE_INPUT,"SexShop","id Item Precio\n\n1 Dildo $1000\n2 Vibrador Pequeño $1500\n3 Vibrador Grande $2000\n4 Consolador $2000\n","Comprar", "Cancelar");
- }
- if(strval(inputtext) == 3)
- {
- if(GetPlayerMoney(playerid) <= 2000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,12,0);
- GivePlayerMoney(playerid, -2000);
- }
- ShowPlayerDialog(playerid, ITEMMENU+2, DIALOG_STYLE_INPUT,"SexShop","id Item Precio\n\n1 Dildo $1000\n2 Vibrador Pequeño $1500\n3 Vibrador Grande $2000\n4 Consolador $2000\n","Comprar", "Cancelar");
- }
- if(strval(inputtext) == 4)
- {
- if(GetPlayerMoney(playerid) <= 2000)
- {
- SendClientMessage(playerid,COLOR_ROJO2,"[ ! ] No tienes dinero suficiente");
- }else{
- GivePlayerWeapon(playerid,13,0);
- GivePlayerMoney(playerid, -2000);
- }
- ShowPlayerDialog(playerid, ITEMMENU+2, DIALOG_STYLE_INPUT,"SexShop","id Item Precio\n\n1 Dildo $1000\n2 Vibrador Pequeño $1500\n3 Vibrador Grande $2000\n4 Consolador $2000\n","Comprar", "Cancelar");
- }
- }
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- //------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment