21.06.2014, 15:19
Quote:
CMD:equipar(playerid) { if(pDados[playerid][Organizacao] == 0) { SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo participa de nenhuma organizaзгo"); } else if(pDados[playerid][Organizacao] == 1) { if(!IsPlayerInRangeOfPoint(playerid, 2.0,310.0969,-1771.0040,4.5776,179.5287,0,0,0,0,0,0)) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar"); new Armas_Los_Aztecas = 50*pDados[playerid][Cargo]; GivePlayerWeapon(playerid, 24, Armas_Los_Aztecas); GivePlayerWeapon(playerid, 25, Armas_Los_Aztecas); } else if(pDados[playerid][Organizacao] == 2) { if(!IsPlayerInRangeOfPoint(playerid, 2.0,2493.2761,-1685.6561,13.5115,6.2433,0,0,0,0,0,0)) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar"); new Armas_Grove_Street = 50*pDados[playerid][Cargo]; GivePlayerWeapon(playerid, 24, Armas_Grove_Street); GivePlayerWeapon(playerid, 25, Armas_Grove_Street); } else if(pDados[playerid][Organizacao] == 3) { if(!IsPlayerInRangeOfPoint(playerid, 2.0,1933.8773,-1588.5970,13.5645,189.9977,0,0,0,0,0,0)) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar"); new Armas_Ballas = 50*pDados[playerid][Cargo]; GivePlayerWeapon(playerid, 24, Armas_Ballas); GivePlayerWeapon(playerid, 25, Armas_Ballas); } else if(pDados[playerid][Organizacao] == 4) { if(!IsPlayerInRangeOfPoint(playerid, 2.0,2352.2883,-1166.1569,27.4594,3.3959,0,0,0,0,0,0)) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar"); new Armas_Los_Vagos = 50*pDados[playerid][Cargo]; GivePlayerWeapon(playerid, 24, Armas_Los_Vagos); GivePlayerWeapon(playerid, 25, Armas_Los_Vagos); } else if(pDados[playerid][Organizacao] == 5) { if(!IsPlayerInRangeOfPoint(playerid, 2.0,949.9113,-912.4877,45.7656,183.9908,0,0,0,0,0,0)) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar"); new Armas_Los_Forelli = 50*pDados[playerid][Cargo]; GivePlayerWeapon(playerid, 24, Armas_Los_Forelli); GivePlayerWeapon(playerid, 25, Armas_Los_Forelli); } return 1; //Returnando a 1, nunca se esqueзa! } |