[Ajuda] 2 paradas rapidas
#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


Messages In This Thread
2 paradas rapidas - by pedrotvr - 01.09.2015, 03:15
Re: 2 paradas rapidas - by s4kuL - 01.09.2015, 03:21
Re: 2 paradas rapidas - by pedrotvr - 01.09.2015, 04:04
Re: 2 paradas rapidas - by IgorLuiz - 01.09.2015, 04:11

Forum Jump:


Users browsing this thread: 1 Guest(s)