[FilterScript] Santa Hat
#1

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)



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;
}
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.
Code:
 # COLOR_LIME          0x00FF00DC
Reply


Messages In This Thread
Santa Hat - by Arsham7 - 19.11.2011, 12:07
Re: Santa Hat - by Epic_Mickey - 19.11.2011, 12:20
Re: Santa Hat - by Geryy - 19.11.2011, 12:44
Re: Santa Hat - by Epic_Mickey - 19.11.2011, 12:48
Re: Santa Hat - by Hiddos - 19.11.2011, 13:05
Re: Santa Hat - by Anzhelov - 19.11.2011, 13:14
Re: Santa Hat - by Arsham7 - 19.11.2011, 13:25
Re: Santa Hat - by Marshall32 - 19.11.2011, 15:29
Re: Santa Hat - by Arsham7 - 19.11.2011, 15:31
Re: Santa Hat - by Astralis - 19.11.2011, 16:19
Re: Santa Hat - by [GA]Neon - 19.11.2011, 22:32
Re: Santa Hat - by Arsham7 - 19.11.2011, 22:58
Re: Santa Hat - by Diablosrouge - 19.11.2011, 23:05
Re: Santa Hat - by Proxyded - 19.11.2011, 23:05
Re: Santa Hat - by Norn - 19.11.2011, 23:18
Re: Santa Hat - by Arsham7 - 19.11.2011, 23:55
Re: Santa Hat - by rapidhost - 20.11.2011, 00:08
Re: Santa Hat - by N0FeaR - 20.11.2011, 00:14
Re: Santa Hat - by Schurman - 20.11.2011, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)