[Ajuda] Como faзo pra mover um icone no samp ?
#1

por exempo eu tenho um gm eu coloquei o sistema de mudanзa de luta mais eu quero alterar o icone pra outro lugar como faзo isso ? olhem aki o FS

Код:
//=============----- 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
#2

Nгo й ae que fica o MapIcon, й sу procurar o mapicon e mudar asw coordenadas.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)