19.11.2011, 12:07
(
Last edited by Arsham7; 28/11/2011 at 10:00 PM.
)
Hello. I have made a very very simple santa hat script. No need to download. I will post it here since its a short code. This was originally made for Unity-RPG by Makaveli aka Arsham. Enjoy this christmas!

Commands:
/santa - To equip santa hat.
/remove - To remove santa hat. (This removes the PlayerAttachedObject with the index of 3)
You can set your own color, but for me I use COLOR_LIME. this is LIME Green color. You have to it on top of your script.

Commands:
/santa - To equip santa hat.
/remove - To remove santa hat. (This removes the PlayerAttachedObject with the index of 3)
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/santa", true))
{
SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
return SendClientMessage(playerid, 0x00FF00FF, "Santa hat equipped!");
}
if(!strcmp(cmdtext, "/remove", true))
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 3))
{
RemovePlayerAttachedObject(playerid, 3);
SendClientMessage(playerid, 0x00FF00FF, "Equipped objects removed.");
}
return 1;
}
return 0;
}
Code:
# COLOR_LIME 0x00FF00DC



.