[Pedido] brinquedos
#1

alguem tem como fazer esse codigo em forma de menu de bugigangas e os codigos para poder comprar?ficarei mt agradecido

PHP код:
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         FS JL-Brinquedos/Utilidades v1.0
                                   Crйditos:
                                 JhnN - pelo FS
                       FiniSh1 - Por alguns SetPlayerAttachedObject
         Agradecimentos: Wiki e Forum SA:MP, por tirar dъvidas e ajudar em uns cуdigos
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#define FILTERSCRIPT
#include <a_samp>    
#include <zcmd>
#if defined FILTERSCRIPT
#define Verde  0x80FF80AA
#define Rosa   0xFF00FFAA
#define Vermelho  0xFF0000AA
#define Azulclaro  0x0088FFFF
#define BrinquedosJhnN 50
new JL[4][160] =
{
"[ERRO]: Vocк precisa sair do veнculo!",
"[ERRO]: Vocк precisa Logar/Spawn!",
"[INFO]: Seu brinquedo foi removido com sucesso!",
"[INFO]: Para tirar um brinquedo {FF0000}/tirarbrinquedo"
};
public 
OnFilterScriptInit() 
{
    print(
"FS JL-Brinquedos por JhnN!");
    return 
1
}
CMD:brinquedos(playeridparams[])
{
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridVermelhoJL[0]);
    
ShowBrinquedos(playerid);
    return 
1;
}
CMD:tirarbrinquedo(playeridparams[])
{
    for(new 
i=0iMAX_PLAYER_ATTACHED_OBJECTSi++)
    {
        if(
IsPlayerAttachedObjectSlotUsed(playeridi)) RemovePlayerAttachedObject(playeridi);
    }
    
SendClientMessage(playeridVermelhoJL[2]);
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
     switch(
dialogid)
    {
        case 
BrinquedosJhnN:
        {
        if(
response)
        {
        
SendClientMessage(playeridAzulclaroJL[3]);
        
GameTextForPlayer(playerid,"~y~/tirarbrinquedo",4000,3);
        switch(
listitem)
        {
              case 
0SetPlayerAttachedObject(playerid01933020.166000, -0.0389990.0000000.0000000.0000000.0000001.0000001.0000001.000000);
              case 
1SetPlayerAttachedObject(playerid01916120.0789990.0000000.0000000.0000000.0000000.0000001.0000001.0000001.000000);
              case 
2SetPlayerAttachedObject(playerid01863920.1310000.0190000.0000000.0000000.0000000.0000001.0000001.0000001.000000);
              case 
3SetPlayerAttachedObject(playerid01863820.1489990.0310000.0000000.0000000.0000000.0000001.0000001.0000001.000000);
              case 
4SetPlayerAttachedObject(playerid01893920.1640000.0019990.0000000.0000000.0000000.0000001.0000001.0000001.000000);
              case 
5SetPlayerAttachedObject(playerid01948820.1219990.000000, -0.005999, -83.19996698.200027, -2.5000001.0000001.0000001.000000);
              case 
6SetPlayerAttachedObject(playerid01935220.1069990.016000, -0.0109994.50000082.099990, -3.1000011.0000001.0000001.000000);
              case 
7SetPlayerAttachedObject(playerid0190902, -0.3159990.0199990.0300000.0000000.0000000.0000001.4559990.5260000.541000);
              case 
8SetPlayerAttachedObject(playerid01942420.070999, -0.026000, -0.002000, -85.2999871.600005, -99.5000000.9440010.9150000.809999);
              case 
9SetPlayerAttachedObject(playerid019078,1,-1.000000,-0.517000,0.000000,0.000000,0.299999,10.499994,8.673998,9.400999,7.410993);
              case 
10SetPlayerAttachedObject(playerid,119078,4,-0.067000,0.053999,0.018000,-168.400039,-169.800003,-2.800000,1.000000,1.000000,1.000000);
              case 
11SetPlayerAttachedObject(playerid,019085,2,0.090999,0.035000,-0.015000,106.599983,83.199996,0.800003,1.000000,1.000000,1.000000);
              case 
12SetPlayerAttachedObject(playerid,119086,15,0.051000,0.000000,-0.424999,0.000000,0.000000,-102.100006,1.000000,1.000000,1.000000);
              case 
13SetPlayerAttachedObject(playerid,019137,2,0.101000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000);
              case 
14SetPlayerAttachedObject(playerid,019137,15,0.040999,0.000000,-0.130000,-86.300003,106.100013,-96.100051,7.741999,4.874000,5.584998);
              case 
15SetPlayerAttachedObject(playerid,019315,1,-0.247999,0.509999,-0.015999,4.300004,86.900024,85.500015,3.010000,4.463000,3.824000);
              case 
16SetPlayerAttachedObject(playerid,019314,2,0.157000,0.000000,0.000000,-0.199999,-7.600006,-88.599998,1.000000,1.000000,1.000000);
              case 
17SetPlayerAttachedObject(playerid,019314,2,0.157000,0.000000,0.000000,1.400000,-7.600006,-28.599973,0.711000,0.919999,0.361999);
              case 
18SetPlayerAttachedObject(playerid,019320,2,0.000000,0.000000,0.000000,4.299999,72.999992,3.199999,3.594999,3.787999,4.951001);
              case 
19SetPlayerAttachedObject(playerid,018963,2,0.261000,0.084999,0.004999,4.999999,85.400039,84.699974,2.097000,2.627000,3.033999);
              case 
20SetPlayerAttachedObject(playerid,01607,2,0.267000,0.000000,0.000000,-0.199999,81.199996,-3.499999,1.135000,1.000000,1.126999);
              case 
21SetPlayerAttachedObject(playerid,01608,1,0.000000,0.000000,0.000000,0.499999,89.200042,0.199999,1.000000,1.000000,1.000000);
              case 
22SetPlayerAttachedObject(playerid,01609,1,-0.358000,0.000000,0.170000,0.000000,93.099998,0.000000,1.427000,1.509000,1.641000);
              case 
23SetPlayerAttachedObject(playerid,016442,15,0.000000,0.000000,0.259000,0.000000,0.000000,-104.400001,1.000000,1.000000,1.000000);
              case 
24SetPlayerAttachedObject(playerid,1373 10.33, -0.029, -0.15652535);
              case 
25SetPlayerAttachedObject(playerid,1124010.150.170.060.090.00.0);
              case 
26SetPlayerAttachedObject(playerid,1125210.1, -0.20.00.090.00.0);
              case 
27SetPlayerAttachedObject(playerid,13561, -0.2, -0.150.00.024.00.0);
              case 
28SetPlayerAttachedObject(playerid,,359 ,15 ,-0.02 ,0.08 ,-0.3 ,,50 ,-10);
              case 
29SetPlayerAttachedObject(playerid,01906520.1200000.040000, -0.00350001001001.41.41.4);
              case 
30SetPlayerAttachedObject(playerid,,1852 ,,0.1 ,,-0.01 ,,15 ,0);
              case 
31SetPlayerAttachedObject(playerid,116541,0.1,0.20,0.0,180.0,100.0,0.0);
              }
           }
        }
     }
     return 
1;
}
stock ShowBrinquedos(playerid)
{
    new 
string[1700];
    
strcat(string"{FF0000}-{FFFFFF} Chapйu de Bombeiro {0088FF}Slot 1 \n"); // 0
    
strcat(string"{FF0000}-{FFFFFF} Chapйu de Policial {0088FF}Slot 1 \n"); //   1
    
strcat(string"{FF0000}-{FFFFFF} Chapйu Michael Jackson {0088FF}Slot 1 \n"); // 2
    
strcat(string"{FF0000}-{FFFFFF} Chapйu Operбrio {0088FF}Slot 1 \n"); // 3
    
strcat(string"{FF0000}-{FFFFFF} Chapйu de Funkeiro {0088FF}Slot 1 \n"); // 4
    
strcat(string"{FF0000}-{FFFFFF} Chapйu de Veio {0088FF}Slot 1 \n"); // 5
    
strcat(string"{FF0000}-{FFFFFF} Chapйu do Harry Potter {0088FF}Slot 1 \n"); // 6
    
strcat(string"{FF0000}-{FFFFFF} Bolsa de sequestrador {0088FF}Slot 1 \n");// 7
    
strcat(string"{FF0000}-{FFFFFF} Fones de ouvido {0088FF}Slot 1 \n");// 8
    
strcat(string"{FF0000}-{FFFFFF} Loro Josй Gigante {0088FF}Slot 1 \n");// 9
    
strcat(string"{FF0000}-{FFFFFF} Loro Josй menor (Ombro) {0088FF}Slot 2 \n");// 10
    
strcat(string"{FF0000}-{FFFFFF} Tapa olho de pirata {0088FF}Slot 2 \n");// 11
    
strcat(string"{FF0000}-{FFFFFF} Dildo {0088FF}Slot 2\n");// 12
    
strcat(string"{FF0000}-{FFFFFF} Cabeзa de galo {0088FF}Slot 1 \n");// 13
    
strcat(string"{FF0000}-{FFFFFF} Cabeзa de galo gigante Slot 1 \n");// 14
    
strcat(string"{FF0000}-{FFFFFF} Cervo {0088FF}Slot 1 \n");// 15
    
strcat(string"{FF0000}-{FFFFFF} Chifre de boy 1 {0088FF}Slot 1 \n");// 16
    
strcat(string"{FF0000}-{FFFFFF} Chifre de boy 2 {0088FF}Slot 1 \n");// 17
    
strcat(string"{FF0000}-{FFFFFF} Fanstasia de obуbora {0088FF}Slot 1 \n");// 18
    
strcat(string"{FF0000}-{FFFFFF} Cabeзгo do CJ {0088FF}Slot 1 \n"); // 19
    
strcat(string"{FF0000}-{FFFFFF} Golfinho {0088FF}Slot 1 \n"); // 20
    
strcat(string"{FF0000}-{FFFFFF} Tubarгo {0088FF}Slot 1 \n"); // 21
    
strcat(string"{FF0000}-{FFFFFF} Fantasia de tartaruga {0088FF}Slot 1 \n"); // 22
    
strcat(string"{FF0000}-{FFFFFF} Vaca {0088FF}Slot 1 \n"); // 23
    
strcat(string"{FF0000}-{FFFFFF} Colete no corpo {0088FF}Slot 2 \n");// 24
    
strcat(string"{FF0000}-{FFFFFF} Coraзгo no peito {0088FF}Slot 2 \n");// 25
    
strcat(string"{FF0000}-{FFFFFF} C4 nas costas {0088FF}Slot 2 \n");// 26
    
strcat(string"{FF0000}-{FFFFFF} M4 nas costas  {0088FF}Slot 2 \n");// 27
    
strcat(string"{FF0000}-{FFFFFF} Bazzuka nas costas  {0088FF}Slot 2 \n");// 28
    
strcat(string"{FF0000}-{FFFFFF} Toca do Papai Noel  {0088FF}Slot 1 \n");// 29
    
strcat(string"{FF0000}-{FFFFFF} Dado na cabeзa  {0088FF}Slot 1 \n");// 30
    
strcat(string"{FF0000}-{FFFFFF} C4 no peito  {0088FF}Slot 2 \n");// 31
    //SendClientMessage(playerid, Azulclaro, JL[3]);
    
ShowPlayerDialog(playeridBrinquedosJhnNDIALOG_STYLE_LIST"JL-Brinquedos, selecione um brinquedo para adcionar a seu skin:"string"APLICAR""SAIR");
    return 
1;
 }
#endif 
Reply
#2

PHP код:
switch(listitem)
{
    case 
0:
    {
        if(
GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1"ERRO: Vocк nгo tem R$100!");
        
SetPlayerAttachedObject(playerid01933020.166000, -0.0389990.0000000.0000000.0000000.0000001.0000001.0000001.000000);
        return 
1;
    }
    case 
1:
    {
        if(
GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1"ERRO: Vocк nгo tem R$100!");
        
SetPlayerAttachedObject(playerid01916120.0789990.0000000.0000000.0000000.0000000.0000001.0000001.0000001.000000);
        return 
1;
    }
    case 
2:
    {
        return 
1;
    }
    
// basta continuar...
    
return 1;

Espero ter ajudado, se nгo for isso explique oque й por favor.
Reply
#3

e isso msm mt obrigado estou comeзando com o pawno
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)