14.07.2016, 21:13
Antes funcionava certinho e do nada parou...
pawn Код:
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
if(PlayerToPoint(1, playerid, 2456.7915,-1461.0281,23.7199))
{
OnPlayerCommandText(playerid,"/blindar");
}
//ENTRAR ENFORCER
new vid = GetPlayerVehicleID(playerid);
if((newkeys == KEY_HORN))
{
if(GetVehicleModel(vid) == 427 && GetPlayerVehicleSeat(playerid) > 1)
{
OnPlayerCommandText(playerid,"/entrar");
}
return 1;
}
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
if(PlayerToPoint(1, playerid, 2456.7915,-1461.0281,23.7199))
{
OnPlayerCommandText(playerid,"/blindar");
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1528.3715,-1638.2184,5.9387) || IsPlayerInRangeOfPoint(playerid, 3.0, 322.0003,-1498.4271,25.0985) ||
IsPlayerInRangeOfPoint(playerid, 3.0, -1481.6078,459.3166,6.9079) || IsPlayerInRangeOfPoint(playerid, 3.0, 814.8043,-1226.6600,15.3442) ||
IsPlayerInRangeOfPoint(playerid, 3.0, -509.8553,-502.3064,25.5234) || IsPlayerInRangeOfPoint(playerid, 3.0, 1522.3036,-1832.5360,13.2514))
{
new newcar = GetPlayerVehicleID(playerid);
if(IsACopCar(newcar) || IsAExCar(newcar) || IsAPoliciaCivilCar(newcar) || IsAPFCar(newcar) || IsABOPEsCar(newcar) || IsAGOVCar(newcar))
{
OnPlayerCommandText(playerid,"/blindargov");
}
}
}
if(gTeam[playerid] == 2 || IsACop(playerid) || IsAGOV(playerid))
{
OnPlayerCommandText(playerid,"/pe");
OnPlayerCommandText(playerid,"/pe2");
OnPlayerCommandText(playerid,"/pg");
OnPlayerCommandText(playerid,"/abrirgn");
OnPlayerCommandText(playerid,"/pb");
OnPlayerCommandText(playerid,"/pcp");
OnPlayerCommandText(playerid,"/pcg");
OnPlayerCommandText(playerid,"/ppc");
}
if(IsAGOV(playerid))
{
OnPlayerCommandText(playerid,"/pgov");
}
if(IsAJornal(playerid))
{
OnPlayerCommandText(playerid,"/portaoreporter");
}
if(IsATaxi(playerid))
{
OnPlayerCommandText(playerid,"/ptaxi");
}
if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
OnPlayerCommandText(playerid,"/pyakuza");
}
if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
OnPlayerCommandText(playerid,"/acn");
}
if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
OnPlayerCommandText(playerid,"/ppf");
}
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
OnPlayerCommandText(playerid,"/phit");
}
if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
{
OnPlayerCommandText(playerid,"/ptriad");
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
OnPlayerCommandText(playerid,"/Cativeiro");//Cativeiro
}
}
return true;
}