19.02.2010, 13:26
Use it like this:
Unsure if it works, but my /style command is based on it.
pawn Код:
if(strcmp(cmd,"/handsup",true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext,idx);
if(!strcmp("1",tmp,true))
{
ApplyAnimation(playerid,"ROB_BANK","SHP_HandsUp_Scr",4.1,1,1,1,1,0);
}
if(!strcmp("2",tmp,true))
{
ApplyAnimation(playerid,"PED","handsup",4.1,1,1,1,1,0);
}
else SendClientMessage(playerid,0xFFFFFFFF,"USAGE: /handsup [1-2]");
return 1;
}