09.11.2017, 16:17
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; }