[TUT=FS]Sistema de Luta
#1

Muitos nгo tem o sistema que altera o tipo de Luta entгo resolvi postar aqui...
Code:
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//


//=============----- Includes by Luan -----============//

#include <a_samp>

//=============----- News by Luan -----============//
new Menu:sistemadeluta;

//=============----- Importantes by Luan -----============//

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Estilo de LUTA! by Luan");
	print("--------------------------------------\n");
	
	sistemadeluta = CreateMenu("Sistema de Luta", 1, 50.0, 180.0, 200.0, 200.0);
	AddMenuItem(sistemadeluta, 0, "Luta ~~> Boxe");
	AddMenuItem(sistemadeluta, 0, "Luta ~~> Kongfu");
	AddMenuItem(sistemadeluta, 0, "Luta ~~> Briga de Rua");
	AddMenuItem(sistemadeluta, 0, "Luta ~~> Agarra e Chute");
	AddMenuItem(sistemadeluta, 0, "Luta ~~> Normal");
	AddMenuItem(sistemadeluta, 0, "Sair / Fechar");
	
	return 1;
}

//=============----- Comando by Luan -----============//

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mudarluta", cmdtext, true, 10) == 0)
	{
		ShowMenuForPlayer(sistemadeluta, playerid);
		TogglePlayerControllable(playerid,0);
		return 1;
	}
	return 0;
}

//=============----- Funзхes do Menu by Luan -----============//

public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:current;
  current = GetPlayerMenu(playerid);
  if(current == sistemadeluta)
  {
    switch(row)
    {
      case 0:{
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);

      }
      case 1:{
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);

      }
      case 2:{
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);

      }
      case 3:{
      SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);

      }
      case 4:{
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
      
			}
			case 5:{
      SendClientMessage(playerid, 0x00ff00ff, " Vocк fechou o Menu de SISTEMA DE LUTA ");
      
      }
    }
  }

	return 1;
}

//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
//=============----- SISTEMA DE LUTA BY LUAN -----============//
Reply


Messages In This Thread
[TUT=FS]Sistema de Luta - by luandriftlogkdr - 25.03.2010, 23:35
Re: [TUT=FS]Sistema de Luta - by [H]unter - 26.03.2010, 00:42
Re: [TUT=FS]Sistema de Luta - by Ricardo_Saddler - 26.03.2010, 00:54
Re: [TUT=FS]Sistema de Luta - by russo666 - 26.03.2010, 01:12
Re: [TUT=FS]Sistema de Luta - by andmeida10 - 26.03.2010, 06:59
Re: [TUT=FS]Sistema de Luta - by sergio_killer - 27.03.2010, 16:34
Re: [TUT=FS]Sistema de Luta - by 147rafa147 - 27.03.2010, 16:47
Re: [TUT=FS]Sistema de Luta - by andmeida10 - 28.03.2010, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)