15.08.2009, 09:38
how can i make a command
thats like /anim [ name of the anim ]
like that how can i make that ?
thats like /anim [ name of the anim ]
like that how can i make that ?
if(strcmp(cmd, "/anim", true) == 0)
{
tmp = strtok(cmdtext, idx);
new anim = strval(tmp);
if (anim == handsup)
{
// here the anim line
}
return 1;
}
if(strcmp(cmdtext, "/anim", true) == 0) { SendClientMessage(playerid,COLOR_YELLOW,"/lay - /sit - /roll - /deal"); SendClientMessage(playerid,COLOR_YELLOW,"/eat - /vomit - /dance1-4l"); SendClientMessage(playerid,COLOR_YELLOW,"copy this as much as you want.."); return 1; }
Originally Posted by XtremeChio
You posted right before me.
You want that when you type /anim you get a list of all possible anims or when you type /anim you do something ? Cause you explain badly.. |
if(!strcmp(cmdtext,"/anim handsup", true)) { ApplyAnimation(playerid, "ROB_BANK", "SHP_HandsUp_Scr", 4.0, 0, 0, 0, 0, 0); return 1; }
if(!strcmp(cmdtext,"/anim bomb", true)) { ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0, 1, 0, 0, 1, 0); return 1; }
Originally Posted by radi
ARE YOU STUPED
i said i wanted the anims in 1 cmd not in 200 but i already maked it so fixed |
Originally Posted by radi
ARE YOU STUPED
i said i wanted the anims in 1 cmd not in 200 but i already maked it so fixed |