[Ajuda] 2 paradas rapidas
#1

1- Como remove as marcas no mapa dos players? A muito tempo eu coloque isso, mas estraga aquele lance de pegar desprevenido e tals, como tira as marcaзхes dos players no map?

2- Como checar se o player ta de veiculo pra arrumar meu /goto q os admins sу podem dar se tiverem a pй?
E somando sу +2Y nгo vai chegar atropelando os cara n?

Код:
	CMD:goto(playerid, params[]) {
		if(admin[playerid] < 1) return 0;
		new id;
		new string[80];
		if(sscanf(params,"u", id)) return SendClientMessage(playerid, -1, "Use: /goto [id]");

		new Float:X, Float:Y, Float:Z;
		GetPlayerPos(id, X, Y, Z);
		SetPlayerPos(playerid, X, Y+2, Z);
		SetPlayerInterior(id, GetPlayerInterior(playerid));

		format(string, sizeof(string), "AdmCmd: %s foi atй o jogador %s.", PlayerName(playerid), PlayerName(id) );
		ABroadCast(COLOR_LIGHTRED, string, 1);
		return 1;
	}
Reply
#2

Use IsPlayerInAnyVehicle pra checar se o determinado id estб em um veiculo
e para tirar o icone do jogador do mapa use ShowPlayerMarkers
Reply
#3

Tem como mostrar no mapa se for da mesma ORG por exemplo
Код:
if(IsACop(playerid) && IsACop(giveplayerid) )


E esse tem que mudar alguma coisa pra ir com carro ou pode ser assim mesmo \/
Код:
	CMD:goto(playerid, params[]) {
		if(admin[playerid] < 1) return 0;
		new id;
		new string[80];
		if(sscanf(params,"u", id)) return SendClientMessage(playerid, -1, "Use: /goto [id]");
		if(IsPlayerInAnyVehicle(playerid) && GetPlayerInterior(id) == 0) {
			new Float:X, Float:Y, Float:Z;
			GetPlayerPos(id, X, Y, Z);
			SetPlayerPos(playerid, X, Y+2, Z);
		} else {
			new Float:X, Float:Y, Float:Z;
			GetPlayerPos(id, X, Y, Z);
			SetPlayerPos(playerid, X, Y+2, Z);
			SetPlayerInterior(playerid, GetPlayerInterior(id));
		}
		format(string, sizeof(string), "AdmCmd: %s foi atй o jogador %s.", PlayerName(playerid), PlayerName(id) );
		ABroadCast(COLOR_LIGHTRED, string, 1);
		return 1;
	}
Reply
#4

Vocк quer que ele vб com o carro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)