SA-MP Forums Archive
CMD:animations and CMD:snow - 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: CMD:animations and CMD:snow (/showthread.php?tid=400769)



CMD:animations and CMD:snow - Rydur - 20.12.2012

Hello samp,

How would i add /animations and /snow to my script?

animations just show all the different emotes you can do and the /snow is just obvious, It makes it snow.


Re: CMD:animations and CMD:snow - ikey07 - 20.12.2012

Get snow object id from SA/SAMP/SAMP.ide and make it follow the player, its like 50 or less lines

GetPlayerPos(.
MovePlayerObject(..


For anims, check FS section


Re: CMD:animations and CMD:snow - Marven - 20.12.2012

Here is the simple animations cmd as you asked it will just show some of the anims that you can do, you have to script the anims cmd yourself, or if you cant then tell me i will do it for you.

write
"#define ANIM_LIST 1" at the top of the script
pawn Код:
CMD:anims(playerid, params[])
{
    ShowPlayerDialog(playerid, ANIM_LIST, DIALOG_STYLE_MSGBOX , "{FFFFFF}Animations List", "{FFFFFF}/dance /laugh /piss /chat /fucku /vomit /slapass /wave\n/drunk /handsup /deal /crack /gsit /sit /taichi /lay /cry /smoke", "Ok", "");
    return true;
}
Here is the snow filterscript you can use for your server

CLICK ME


Re: CMD:animations and CMD:snow - Rydur - 20.12.2012

How do i make a line when i add it?

anims


Re: CMD:animations and CMD:snow - Marven - 20.12.2012

Quote:
Originally Posted by Rydur
Посмотреть сообщение
How do i make a line when i add it?

anims
umm what??


Re: CMD:animations and CMD:snow - Rydur - 20.12.2012

Like

/hi /hi "LINE'
/hi/hi


Re: CMD:animations and CMD:snow - Marven - 20.12.2012

Quote:
Originally Posted by Rydur
Посмотреть сообщение
Like

/hi /hi "LINE'
/hi/hi
you mean like this??

pawn Код:
CMD:dance(playerid, params[])
{
    new animid;
    if(sscanf(params, "i", animid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dance [1-4]");
    if(animid < 1 || animid > 4) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dance [1-4]");
    switch(animid)
    {
        case 1: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
        case 2: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
        case 3: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
        case 4: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
    }
    return 1;
}



Re: CMD:animations and CMD:snow - Rydur - 20.12.2012

I get an error. "ANIM_LIST"

Is that right?


Re: CMD:animations and CMD:snow - Marven - 20.12.2012

Quote:
Originally Posted by Rydur
Посмотреть сообщение
I get an error. "ANIM_LIST"

Is that right?
#define ANIM_LIST 1

^^Put this on top of your script.


Re: CMD:animations and CMD:snow - Rydur - 20.12.2012

Works now, Thanks!