[Ajuda] Swat
#4

Quote:
Originally Posted by Koplan
Посмотреть сообщение
Aumente o range 1.0 para 3.0 e em seguida verifique se as coordenadas estгo certas, que no caso, as que escolheu sгo 253.2745,77.1979,1003.6406 em...

PHP код:
if(IsPlayerInRangeOfPoint 
Jб resolvi o problema em questгo mas agora, estб dando o comando em qualquer lugar menos naquelas coordenadas.

Код:
		if(strcmp(texto,	"swat",	true) == 0)
		{
			if(PlayerInfo[playerid][pSwat] == 1)
			{
				if(IsPlayerInRangeOfPoint(playerid,2.0,253.2745,77.1979,1003.6406)) return SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo estб no local adequado");
                if(PlayerInfo[playerid][pDuty] == 0)
				{
    				PlayerInfo[playerid][pDuty] = 1;
					SendClientMessage(playerid, COLOR_WHITE, "Vocк colocou seu uniforme de SWAT.");
					RemovePlayerAttachedObject(playerid, 3);
 					RemovePlayerAttachedObject(playerid, 4);
					SetPlayerSkin(playerid, 285);
					SetPlayerColor(playerid,COLOR_POLICIA);
				}
				else
				{
    				RemovePlayerAttachedObject(playerid, 3);
					RemovePlayerAttachedObject(playerid, 4);
					SetPlayerColor(playerid,COLOR_WHITE);
					SendClientMessage(playerid, COLOR_WHITE, "Vocк retirou seu uniforme de SWAT.");
					SetPlayerSkin(playerid, PlayerInfo[playerid][jRopa]);
					PlayerInfo[playerid][pDuty] = 0;
					if(PlayerInfo[playerid][pWP1] == 3)
				{
					QuitarArma(playerid, 3);
					QuitarArma(playerid, 3);
					QuitarArma(playerid, 24);
					QuitarArma(playerid, 27);
					QuitarArma(playerid, 31);
					RemovePlayerAttachedObject(playerid,1);
					QuitarArma(playerid, 46);
					QuitarArma(playerid, 41);
					QuitarArma(playerid, 16);
				}
					ResetPlayerWeapons(playerid);
					DarArmas(playerid);
				}
			}
			else return SendClientMessage(playerid,-1,"Vocк nгo estб na divisгo da SWAT.");
		}
		return 1;
	}
Reply


Messages In This Thread
Swat - by JoelNyiTz - 08.07.2018, 17:02
Re: Swat - by Cauezin - 08.07.2018, 17:54
Re: Swat - by Koplan - 08.07.2018, 19:46
Re: Swat - by JoelNyiTz - 08.07.2018, 20:32
Re: Swat - by Ermanhaut - 08.07.2018, 20:39
Re: Swat - by bruxo00 - 08.07.2018, 20:43
Re: Swat - by JoelNyiTz - 08.07.2018, 21:13
Re: Swat - by Cauezin - 08.07.2018, 21:15
Re: Swat - by JoelNyiTz - 08.07.2018, 21:18
Re: Swat - by JoelNyiTz - 08.07.2018, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)