Bug Faction Vehicles
#1

http://imgur.com/34GMJj6,GCishAg
http://imgur.com/34GMJj6,GCishAg#1

Rapid Recovery Faction Should only can enter those cars but even i'm not in the faction i can still enter it
pawn Код:
new OPGVehicles[15];


stock IsAnRRCar(carid)
{
    for(new v = 0; v < sizeof(OPGVehicles); v++)
    {
        if(carid == OPGVehicles[v]) return 1;
    }
    return 0;
}

stock IsATowTruck(carid)
{
    if(GetVehicleModel(carid) == 485 || GetVehicleModel(carid) == 525 || GetVehicleModel(carid) == 583 || GetVehicleModel(carid) == 574)
    {
        return 1;
    }
    return 0;
}

stock IsARRWrecker(carid)
{
    if(OPGVehicles[ 10 ] == carid) return 1;
    return 0;
}

stock IsARRHeli(carid)
{
    if(OPGVehicles[ 12 ] == carid) return 1;
    return 0;
}

stock IsARRTower(carid)
{
    for(new i = 0; i < 16; i++)
    {
        if(carid == OPGVehicles[i] && GetVehicleModel(carid) == 525) return 1;
    }
    return 0;
}

stock IsARRBattery(carid)
{
    for(new i = 0; i < 16; i++)
    {
        if(carid == OPGVehicles[i] && GetVehicleModel(carid) == 440) return 1;
        if(carid == OPGVehicles[i] && GetVehicleModel(carid) == 578) return 1;
    }
    return 0;
}



else if(IsARRWrecker(vehicleid))
        {
            if(PlayerInfo[playerid][pFaction] == 6 && PlayerInfo[playerid][pRank] >= 4)
            {
                SendClientMessageEx(playerid, COLOR_GREEN, "__________________RAPID RECOVERY WRECKER____________________");
                SendClientMessageEx(playerid, COLOR_GRAD2, "<< Avaiable wrecker commands: >>");
                SendClientMessageEx(playerid, COLOR_GRAD2, "<< /wreck /unwreck /impound >>");
                SendClientMessageEx(playerid, COLOR_GREEN, "____________________________________________________________");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                new Float:slx, Float:sly, Float:slz;
                GetPlayerPos(playerid, slx, sly, slz);
                SetPlayerPos(playerid, slx, sly, slz);
                NOPCheck(playerid);
                SendClientMessageEx(playerid, COLOR_GRAD2, "You are not atleast rank 4 and above in Rapid Recovery");
            }
        }
        else if(IsARRTower(vehicleid))
        {
            if(PlayerInfo[playerid][pFaction] == 6 && PlayerInfo[playerid][pRank] >= 2)
            {
                SendClientMessageEx(playerid, COLOR_GREEN, "__________________RAPID RECOVERY TOW TRUCK____________________");
                SendClientMessageEx(playerid, COLOR_GRAD1, "<< Avaiable tow commands: >>");
                SendClientMessageEx(playerid, COLOR_GRAD1, "<< /tow /untow /impound >>");
                SendClientMessageEx(playerid, COLOR_GREEN, "______________________________________________________________");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                new Float:slx, Float:sly, Float:slz;
                GetPlayerPos(playerid, slx, sly, slz);
                SetPlayerPos(playerid, slx, sly, slz);
                NOPCheck(playerid);
                SendClientMessageEx(playerid, COLOR_GRAD2, "You are not atleast rank 2 and above in Rapid Recovery");
            }
        }
        else if(IsARRBattery(vehicleid))
        {
            if(PlayerInfo[playerid][pFaction] == 6 && PlayerInfo[playerid][pRank] >= 1)
            {
                SendClientMessageEx(playerid, COLOR_GREEN, "__________________RAPID RECOVERY BATTERY______________________");
                SendClientMessageEx(playerid, COLOR_GRAD1, "<< Avaiable mechanic commands: >>");
                SendClientMessageEx(playerid, COLOR_GRAD1, "<< /fix /refill >>");
                SendClientMessageEx(playerid, COLOR_GREEN, "______________________________________________________________");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
                new Float:slx, Float:sly, Float:slz;
                GetPlayerPos(playerid, slx, sly, slz);
                SetPlayerPos(playerid, slx, sly, slz);
                NOPCheck(playerid);
                SendClientMessageEx(playerid, COLOR_GRAD2, "You are not atleast rank 1 and above in Rapid Recovery");
            }
        }



OPGVehicles[0] = AddStaticVehicleEx(525,2107.1995,-2171.6860,13.4191,322.9891,30,30,VEHICLE_RESPAWN);
    OPGVehicles[1] = AddStaticVehicleEx(525,2103.1370,-2169.2925,13.4516,330.9555,30,30,VEHICLE_RESPAWN);
    OPGVehicles[2] = AddStaticVehicleEx(525,2125.4380,-2127.7773,13.5245,168.6742,30,30,VEHICLE_RESPAWN);
    OPGVehicles[3] = AddStaticVehicleEx(525,2120.6880,-2126.6824,13.5030,166.8591,30,30,VEHICLE_RESPAWN);
    OPGVehicles[4] = AddStaticVehicleEx(440,2147.1279,-2189.1238,13.6694,43.2413,30,30,VEHICLE_RESPAWN);
    OPGVehicles[5] = AddStaticVehicleEx(440,2150.2139,-2186.2759,13.6600,43.8632,30,30,VEHICLE_RESPAWN);
    OPGVehicles[6] = AddStaticVehicleEx(440,2148.7764,-2167.2866,13.6683,44.3124,30,30,VEHICLE_RESPAWN);
    OPGVehicles[7] = AddStaticVehicleEx(440,2151.3013,-2164.7432,13.6736,44.3210,30,30,VEHICLE_RESPAWN);
    OPGVehicles[8] = AddStaticVehicleEx(440,2154.0869,-2161.9727,13.6637,43.9678,30,30,VEHICLE_RESPAWN);
    OPGVehicles[9] = AddStaticVehicleEx(440,2130.4441,-2129.3420,13.7302,153.4948,30,30,VEHICLE_RESPAWN);
    OPGVehicles[10] = AddStaticVehicleEx(578,2131.2627,-2188.5532,14.1784,45.3329,30,30,VEHICLE_RESPAWN);
    OPGVehicles[11] = AddStaticVehicleEx(525,2115.6875,-2125.5044,13.5089,169.6734,30,30,VEHICLE_RESPAWN);
    OPGVehicles[12] = AddStaticVehicleEx(417,2092.8484,-2140.2249,22.5879,269.3951,30,30,VEHICLE_RESPAWN);
    OPGVehicles[13] = AddStaticVehicleEx(525,2098.3718,-2167.0842,13.4534,333.7443,30,30,VEHICLE_RESPAWN);
    OPGVehicles[14] = AddStaticVehicleEx(525,2093.4485,-2164.5339,13.4488,332.9335,30,30,VEHICLE_RESPAWN);

    for(new x;x<sizeof(OPGVehicles);x++)
    {
        format(string, sizeof(string), "RR %d", OPGVehicles[x]);
        SetVehicleNumberPlate(OPGVehicles[x], string);
        SetVehicleToRespawn(OPGVehicles[x]);
    }
I need help , this is the Last Problem then my Faction is Complete
Reply
#2

disable your hacks
Reply
#3

What Do you mean Hacks?
Reply
#4

I got S0be*t for admin Supports , does it Affect?
Reply
#5

Help please
Reply
#6

But my friend tried it , without S0bei*t it doesn't work too
Reply
#7

Will Someone Help me Please!
Reply
#8

Any knows it? please help me!
Reply
#9

Please stop spamming.
Reply
#10

help me please!, i'm begging you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)