Thread: [Ajuda] objetos no player
View Single Post
Old 09/11/2017, 04:17 PM   #6
Jorginhoda12
Big Clucker
 
Join Date: Nov 2017
Posts: 50
Reputation: 0
Default Re: objetos no player

Code:
                                       if(item == 19079) //  Arara
		{
  			new string[256];
            SendClientMessage(playerid,0x00ccccFF,"* Você usou um acessorio, retirar use: /retiraracessorio !");
            SendClientMessage(playerid,0x00ccccFF,"* Para editar, use: /editaracessorio !");
              FecharInventario(playerid);
                      CancelSelectTextDraw(playerid);
            SetPlayerAttachedObject(playerid, Slot_Efeito, item, 1,0.1,0.20,0.0,180.0,100.0,0.0);
            EditAttachedObject(playerid,Slot_Efeito);
            format(string, sizeof string, "* %s usou um Acessorio Raro.", PlayerName(playerid));
			SendClientMessageInRange(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            InventarioAberto[playerid] = 0;
		    return 1;
        }
                                                   if(item == 19100) //  Chapeu policia
		{
  			new string[256];
            SendClientMessage(playerid,0x00ccccFF,"* Você usou um acessorio, retirar use: /retiraracessorio !");
            SendClientMessage(playerid,0x00ccccFF,"* Para editar, use: /editaracessorio !");
              FecharInventario(playerid);
                      CancelSelectTextDraw(playerid);
            SetPlayerAttachedObject(playerid, Slot_Efeito, item, 1,0.1,0.20,0.0,180.0,100.0,0.0);
            EditAttachedObject(playerid,Slot_Efeito);
            format(string, sizeof string, "* %s usou um Acessorio Raro.", PlayerName(playerid));
			SendClientMessageInRange(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            InventarioAberto[playerid] = 0;
		    return 1;
        }

meus itens estão assim cada 1
Jorginhoda12 is offline   Reply With Quote