Faction Vehicles
#7

Quote:
Originally Posted by J4mmyHD
Посмотреть сообщение
pawn Код:
new CopVehicle[10]
new SirenC
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid >= CopVehicle[0] && vehicleid <= CopVehicle[6])
    {
        if(PlayerInfo[playerid][pMember] != 1)
        {
            new Float:x, Float:y, Float:y;
            GetPlayerPos(playerid, x, y, z);
            SetPlayerPos(playerid, x, y, z)
            SendClientMessage(playerid, COLOR_WHITE, "You dont have the keys to this vehicle! (Faction Restricted)");
        }
    }
    return 1;
}
Код:
new Float:x, Float:y, Float:y;
? I think you mean
Код:
 new Float:x, Float:y, Float:z;
?

EDIT: Doesn't work? Like i said before.

Quote:
Originally Posted by MattyG
Посмотреть сообщение
Make sure that civilians don't accidentally get their pMember set to 1 somewhere. Just search for "PlayerInfo[playerid][pMember] = 1" (without quotation marks) and find out where this gets set. Also make sure that it gets set to 0 when they connect, before you load your data.
I can't find were the civillians get their pMember also to reset the pMember i have set this under OnPlayerConnect
Код:
PlayerInfo[playerid][pMember] = 0;
But still normal players can enter
Reply


Messages In This Thread
Faction Vehicles - by Facerafter - 05.05.2013, 17:51
Re: Faction Vehicles - by BossZk - 05.05.2013, 18:11
Re: Faction Vehicles - by MattyG - 05.05.2013, 18:17
Re: Faction Vehicles - by Facerafter - 05.05.2013, 18:27
Re: Faction Vehicles - by MattyG - 05.05.2013, 18:32
Re: Faction Vehicles - by J4mmyHD - 05.05.2013, 18:45
Re: Faction Vehicles - by Facerafter - 05.05.2013, 18:51
Re: Faction Vehicles - by JJB562 - 05.05.2013, 20:55
Re: Faction Vehicles - by Facerafter - 05.05.2013, 21:40
Re: Faction Vehicles - by JJB562 - 05.05.2013, 22:50

Forum Jump:


Users browsing this thread: 2 Guest(s)