How to make a command with an extra parameter?
#10

pawn Код:
if(!strcmp(cmdtext[1],"handsup",true,7))
{
  switch(strval(cmdtext[9])
  {
    case 1: ApplyAnimation(playerid, "ROB_BANK", "SHP_HandsUp_Scr", 4.1, 0, 0, 0, 1, 1);
    case 2: ApplyAnimation(playerid, "PED", "handsup", 4.1, 0, 0, 0, 1, 1);
    default: SendClientMessage(playerid,0xFF0000FF,"USAGE: /handsup 1 or 2");
  }
  return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)