[Ajuda] Swat
#1

Bom tenho um pequeno bug que nгo consigo detetar, estб tudo funcional mas quando eu dou /uniforme swat que, no caso, й o comando diz:

Код:
"Vocк nгo estб na divisгo da SWAT."
Estб removendo o uniforme certinho da policia, mas o uniforme da Swat nгo entra dando a mensagem acima.

Cуdigos abaixo /darswat e /uniforme swat. Agradeзo desde jб toda a ajuda.


Код:
CMD:darswat(playerid,params[])
{
	new id;
	if(PlayerInfo[playerid][pDuty] == 1 && PlayerInfo[playerid][jMiembro] == 1 && PlayerInfo[playerid][pRango] == 6 || PlayerInfo[playerid][jAdminNvl] < 4)
	{
		if(!sscanf(params,"d",id))
		{
		    if(PlayerInfo[id][jMiembro] == 1)
		    {
		        if(PlayerInfo[id][pSwat] == 0)
		    	{
			        SendClientMessage(id, -1, "Parabйns! O comissбrio da S.A.P.D te tornou vocк um lнder da {DBED15}SWAT{FFFFFF}!.");
        	    	PlayerInfo[id][pSwat] = 1;
            		SendClientMessage(playerid, -1, "Vocк designou a divisгo da {DBED15}SWAT{FFFFFF}!.");
            		return 1;
				}
				else
				{
					SendClientMessage(id, -1, "Lamentavel! O comissбrio da S.A.P.D te expulsou da {DBED15}SWAT{FFFFFF}!.");
        	    	PlayerInfo[id][pSwat] = 0;
            		SendClientMessage(playerid, -1, "Vocк expulsou o jogador da {DBED15}SWAT{FFFFFF}!.");
            		return 1;
				}
			}
			else return SendClientMessage(playerid, -1, "Este jogador nгo й da policia");
		}
		else return SendClientMessage(playerid, -1, "{FFFFFF}Digite: {DBED15}/darswat [ID] [1].");
	}
	else SendClientMessage(playerid, -1, "Vocк nгo pode usar este comando.");
	return 1;
}
Код:
if(strcmp(texto,	"swat",	true) == 0)
		{
			if(PlayerInfo[playerid][pDuty] == 1 && PlayerInfo[playerid][pSwat] == 1)
			{
				if(IsPlayerInRangeOfPoint(playerid,1.0,253.2745,77.1979,1003.6406))
				{
				    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)