SetPlayerFightingStyle Question ?
#2

pawn Код:
example:

CMD:fight(playerid)
{
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "FIGHTING STYLES", "{FFFFFF} ", "Ok", "Cancel");
        return 1;
}




if (dialogid == 2) {
    if (response) {
      if (listitem == 0) {
        SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
     
      }
      if (listitem == 1) {
        SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
       
      }
      if (listitem == 2) {
        SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
       
      }
      if (listitem == 3) {
        SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
       
      }
      if (listitem == 4) {
        SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
       
      }
      if (listitem == 5) {
        SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
       
      }
    }
  }
Reply


Messages In This Thread
SetPlayerFightingStyle Question ? - by Glint - 05.09.2012, 16:42
Re: SetPlayerFightingStyle Question ? - by Q.I - 05.09.2012, 18:39
Re: SetPlayerFightingStyle Question ? - by JustinAn - 05.09.2012, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)