PHP Code:
if(dialogid == 987) //EFEITOS
{
if(!response){return 1;}
// if(!IsPlayerSpawned(playerid)){return 1;}
// if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[0]);
if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, -1, "[ERRO]: Vocк deve sair de seu veнculo.");}
if(listitem == 0){if(IsPlayerAttachedObjectSlotUsed(playerid,2)){RemovePlayerAttachedObject(playerid,2);SendClientMessage(playerid, -1, "[INFO]: Efeito removido");}return 1;}
if(listitem == 1){SetPlayerAttachedObject(playerid,2, 18690, 1, -0.8, 0.0, -0.3, 0.0, 87.0, 90.0);}
if(listitem == 2){SetPlayerAttachedObject(playerid,2, 18714, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 3){SetPlayerAttachedObject(playerid,2, 18720, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 4){SetPlayerAttachedObject(playerid,2, 18721, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 5){SetPlayerAttachedObject(playerid,2, 18728, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 6){SetPlayerAttachedObject(playerid,2, 18742, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
SendClientMessage(playerid, -1, "[INFO]: Espero que goste do novo efeito!");
return 1;
}
if(dialogid == 995) //HOLDING OBJECTS
{
if(!response){return 1;}
//if(!IsPlayerSpawned(playerid)){return 1;}
//if(Arena[playerid] == 1) return SendClientMessage(playerid, -1, StringTable[0]);
if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, -1, "[ERRO]: Vocк deve sair de seu veнculo.");}
if(listitem == 0){if(IsPlayerAttachedObjectSlotUsed(playerid,1)){RemovePlayerAttachedObject(playerid,1);SendClientMessage(playerid, -1, "[INFO]: Acessуrio removido");}return 1;}
if(listitem == 1){SetPlayerAttachedObject(playerid,1, 1609, 1, 0.0, 0.0, 0.0, 90.0, 0.0, -90.0);} //TARTARUGA
if(listitem == 2){SetPlayerAttachedObject(playerid,1, 1244, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);} //BOMBA DE GASOLINA
if(listitem == 3){SetPlayerAttachedObject(playerid,1, 1598, 2, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0);} //BOLA
if(listitem == 4){SetPlayerAttachedObject(playerid,1, 1518, 2, 0.2, 0.0, -0.04, 0.0, 100.0, 180.0);} //TELEVISГO
if(listitem == 5){SetPlayerAttachedObject(playerid,1, 1254, 2, 0.1, 0.01, 0.0, 0.0, 90.0, 0.0);} //CAVEIRA
if(listitem == 6){SetPlayerAttachedObject(playerid,1, 356, 1, -0.2, -0.15, 0.0, 0.0, 24.0, 0.0);} //M4
if(listitem == 7){SetPlayerAttachedObject(playerid,1, 3028, 1, 0.3, -0.15, -0.03, 0.0, 120, 0.0);} //ESPADA
if(listitem == 8){SetPlayerAttachedObject(playerid,1, 366, 1, 0.4, -0.25, 0.0, 0.0, 160.0, 0.0);} //EXTINTOR
if(listitem == 9){SetPlayerAttachedObject(playerid,1, 371, 1, 0.0, -0.175, 0.0, 0.0, 90.0, 0.0);} //PARAQUEDAS (MOCHILA)
if(listitem == 10){SetPlayerAttachedObject(playerid,1, 1252, 1, 0.1, -0.2, 0.0, 0.0, 90.0, 0.0);} //EXPLOSIVO
if(listitem == 11){SetPlayerAttachedObject(playerid,1, 2914, 1, 0.0, 0.0, 0.17, 180.0, 90.0, 0.0);} //BANDEIRA VERDE
if(listitem == 12){SetPlayerAttachedObject(playerid,1, 3131, 1, -0.2, 0.15, 0.0, 0.0, 90.0, 0.0);} //PARAQUEDAS (ABERTO)
if(listitem == 13){SetPlayerAttachedObject(playerid,1, 354, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);} //CLARIDADE (HYDRA FLARE)
if(listitem == 14){SetPlayerAttachedObject(playerid,1, 321, 1, -0.24, 0.6, -0.07, 90.0, 0.0, 0.0);} //DILDO FRENTE
if(listitem == 15){SetPlayerAttachedObject(playerid,1, 323, 1, -0.7, -0.2, 0.0, -90.0, 50.0, 0.0);} //DILDO ATRБS
if(listitem == 16){SetPlayerAttachedObject(playerid,1, 1240, 1, 0.15, 0.17, 0.06, 0.0, 90.0, 0.0);} //CORAЗГO
if(listitem == 17){MostrarDialogoAcessorios(playerid, 2);return 1;}
SendClientMessage(playerid, -1, "[INFO]: Espero que goste do novo acessуrio!");
return 1;
}
if(dialogid == 996) //HOLDING OBJECTS 2
{
if(!response){MostrarDialogoAcessorios(playerid, 1);return 1;}
//if(!IsPlayerSpawned(playerid)){return 1;}
//if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[0]);
if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, -1, "[ERRO]: Vocк deve sair de seu veнculo.");}
if(listitem == 0){SetPlayerAttachedObject(playerid,1 ,16442 , 1, 0, 0, 0, 90, 90, 0);}
if(listitem == 1){SetPlayerAttachedObject(playerid,1 ,2114 , 2, 0.1, 0, 0, 0, 0, 0);}
if(listitem == 2){SetPlayerAttachedObject(playerid,1 ,322 , 1, -0.1, 0.2, -0.04, 90, 180, 0);}
if(listitem == 3){SetPlayerAttachedObject(playerid,1 ,1608 , 1, 0, 0, 0, 0, 90, 0);}
if(listitem == 4){SetPlayerAttachedObject(playerid,1 ,2780 , 2, 0, 0, 0, 0, 90, 180);}
if(listitem == 5){SetPlayerAttachedObject(playerid,1, 1654, 1,0.1,0.20,0.0,180.0,100.0,0.0);}
if(listitem == 6){SetPlayerAttachedObject(playerid,1 ,2054 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);}
if(listitem == 7){SetPlayerAttachedObject(playerid,1 ,2053 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);}
if(listitem == 8){SetPlayerAttachedObject(playerid,1 ,2052 ,2 ,0.1 ,0.03 ,-0.01 ,0 ,90 ,180);}
if(listitem == 9){SetPlayerAttachedObject(playerid,1 ,1213 ,2 ,0.16 ,0 ,0 ,0 ,90 ,0);}
if(listitem == 10){SetPlayerAttachedObject(playerid,1 ,2226 ,5 ,0.4 ,0.04 ,0, 0 ,-90 ,30);}
if(listitem == 11){SetPlayerAttachedObject(playerid,1 ,1318 ,15 ,0 ,0 ,1 ,0 ,0 ,0);}
if(listitem == 12){SetPlayerAttachedObject(playerid,1 ,1238 ,2 ,0.4 ,-0.02 ,0.0001 ,0 ,90 ,0);}
if(listitem == 13){SetPlayerAttachedObject(playerid,1 ,1582 ,5 ,0 ,0 ,-0.16 ,50 ,0 ,10);}
if(listitem == 14){SetPlayerAttachedObject(playerid,1 ,1644 ,5 ,0.1 ,0.08 ,0 ,55 ,0 ,180);}
if(listitem == 15){SetPlayerAttachedObject(playerid,1 ,330 ,5 ,0.15 ,0.01 ,0 ,0 ,180 ,0);}
if(listitem == 16){SetPlayerAttachedObject(playerid,1 ,330 ,5 ,0.15 ,0.01 ,0 ,0 ,180 ,0);}//cube head
if(listitem == 17){MostrarDialogoAcessorios(playerid, 3);return 1;}
SendClientMessage(playerid, -1, "[INFO]: Espero que goste do novo acessуrio!");
return 1;
}
if(dialogid == 997) //HOLDING OBJECTS 3
{
if(!response){MostrarDialogoAcessorios(playerid, 2);return 1;}
//if(!IsPlayerSpawned(playerid)){return 1;}
//if(Arena[playerid] == 1) return SendClientMessage(playerid, -1, StringTable[0]);
if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, -1, "[ERRO]: Vocк deve sair de seu veнculo.");}
if(listitem == 0){SetPlayerAttachedObject(playerid,1 ,1852 ,2 ,0.1 ,0 ,-0.01 ,0 ,15 ,0);} // cube head
if(listitem == 1){SetPlayerAttachedObject(playerid,1 ,1603 ,2 ,0.3 ,0 ,0 ,0 ,90 ,0);} // jellyfish hat 1
if(listitem == 2){SetPlayerAttachedObject(playerid,1 ,1602 ,2 ,0.2 ,0 ,0 ,0 ,90 ,0);} // jellyfish hat 2
if(listitem == 3){SetPlayerAttachedObject(playerid,1 ,1610 ,2 ,0.08 ,0 ,0 ,0 ,90 ,0);} // sand castle hat
if(listitem == 4){SetPlayerAttachedObject(playerid,1 ,2470 ,2 ,0.1 ,0 ,-0.07 ,35 ,80 ,180);} // plane hat
if(listitem == 5){SetPlayerAttachedObject(playerid,1 ,2485 ,2 ,0.1 ,0 ,0.05 ,40 ,80 ,180);} // car hat
if(listitem == 6){SetPlayerAttachedObject(playerid,1 ,2880 ,2 ,0.13 ,-0.1 ,0 ,0 ,10 ,10);} // hamburger hat
if(listitem == 7){SetPlayerAttachedObject(playerid,1 ,1736 ,2 ,0 ,0 ,0 ,0 ,90 ,180);} // dead deer head(awesome)
if(listitem == 8){SetPlayerAttachedObject(playerid,1 ,2680 ,15 ,-0.06 ,0 ,0.15 ,100 ,0 ,190);} // chain on neck
if(listitem == 9){SetPlayerAttachedObject(playerid,1 ,373 , 1, 0.33, -0.029, -0.15, 65, 25, 35);} // armour
if(listitem == 10){SetPlayerAttachedObject(playerid,1 ,2036 ,15 ,0 ,0.13 ,-0.2 ,90 ,0 ,-50);} // fake sniper on back
if(listitem == 11){SetPlayerAttachedObject(playerid,1 ,359 ,15 ,-0.02 ,0.08 ,-0.3 ,0 ,50 ,-10);} // rpg on back
if(listitem == 12){SetPlayerAttachedObject(playerid,1 ,1951 ,5 ,0.13 ,0.09 ,0.05 ,-30 ,190 ,0);} // big green bottle
if(listitem == 13){SetPlayerAttachedObject(playerid,1 ,1667 ,6 ,0.09 ,0.04 ,0.07 ,170 ,-170 ,0);} // whine glass
if(listitem == 14){SetPlayerAttachedObject(playerid,1 ,2703 ,5 ,0.1 ,0.05 ,0 ,0 ,0 ,0);} // hamburger
if(listitem == 15){SetPlayerAttachedObject(playerid,1 ,2712 ,5 ,0.1 ,-0.05 ,-0.2 ,0 ,-50 ,10);} // mop
if(listitem == 16){SetPlayerAttachedObject(playerid,1 ,1371 , 15, 0, 0, -0.1);} // hippo
if(listitem == 17){SetPlayerAttachedObject(playerid,1 ,953 ,15 ,0 ,-0.1 ,0.2 ,0 ,0 ,0);} // clam
if(listitem == 18){MostrarDialogoAcessorios(playerid, 4);return 1;}
SendClientMessage(playerid, -1, "[INFO]: Espero que goste do novo acessуrio!");
return 1;
}
if(dialogid == 986) //HOLDING OBJECTS 4
{
if(!response){MostrarDialogoAcessorios(playerid, 3);return 1;}
//if(!IsPlayerSpawned(playerid)){return 1;}
//if(Arena[playerid] == 1) return SendClientMessage(playerid, -1, StringTable[0]);
if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, -1, "[ERRO]: Vocк deve sair de seu veнculo.");}
if(listitem == 0){SetPlayerAttachedObject(playerid,1, 1243, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 1){SetPlayerAttachedObject(playerid,1, 1235, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 2){SetPlayerAttachedObject(playerid,1, 1223, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 3){SetPlayerAttachedObject(playerid,1, 1215, 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 4){SetPlayerAttachedObject(playerid,1, 1209 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 5){SetPlayerAttachedObject(playerid,1, 1301 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 6){SetPlayerAttachedObject(playerid,1, 1305 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 7){SetPlayerAttachedObject(playerid,1, 1316 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 8){SetPlayerAttachedObject(playerid,1, 1346 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 9){SetPlayerAttachedObject(playerid,1, 1358 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 10){SetPlayerAttachedObject(playerid,1, 3472 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 11){SetPlayerAttachedObject(playerid,1, 3471 , 1, -0.2, 0.1, 0.0, 0.0, 87.0, 90.0);}
if(listitem == 12){SetPlayerAttachedObject(playerid, 1, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);} //Gorro do Papai Noel
SendClientMessage(playerid, -1, "[INFO]: Espero que goste do novo acessуrio!");
return 1;
}