SA-MP Forums Archive
Santa Claus Hat. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Santa Claus Hat. (/showthread.php?tid=302587)



Santa Claus Hat. - budelis - 09.12.2011

Hi visitors. If you can,give me code of santa hat please.


Re: Santa Claus Hat. - [MG]Dimi - 09.12.2011

If I'm right that's 0.3d object...


Re: Santa Claus Hat. - Kingunit - 09.12.2011

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
If I'm right that's 0.3d object...
So? What is the point adding this to his thread since 0.3d is released?

Santa: 19065


Re: Santa Claus Hat. - TouhGear - 09.12.2011

Easy:

PHP код:
new Santahatinhead[MAX_PLAYERS];
CMD:santahat(playeridparams[])
{
    if(!
Santahatinhead[playerid])
        {
            
Santahatinhead[playerid] = 1;
            
SetPlayerAttachedObject(playerid31906520.1200000.040000, -0.00350001001001.41.41.4);
            
SendClientMessage(playeridCOLOR_GREY"You put your head in Santa Hat!");
        }
        else
        {
            
Santahatinhead[playerid] = 0;
            if(
IsPlayerAttachedObjectSlotUsed(playerid3)) RemovePlayerAttachedObject(playerid3);
            
SendClientMessage(playeridCOLOR_GREY"You took your santa hat off!");
        }
    return 
1;

Sorry bad english.


Re: Santa Claus Hat. - PlayHard - 09.12.2011

I was lookihg for this, thanks a lot!