CMD:animations and CMD:snow
#1

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.
Reply
#2

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
Reply
#3

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
Reply
#4

How do i make a line when i add it?

anims
Reply
#5

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

anims
umm what??
Reply
#6

Like

/hi /hi "LINE'
/hi/hi
Reply
#7

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;
}
Reply
#8

I get an error. "ANIM_LIST"

Is that right?
Reply
#9

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.
Reply
#10

Works now, Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)