Before the player enters the car
#10

I've just told you...
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(ispassenger == 0)
    {
        if(IsAnFbiCar(vehicleid))
        {
            if(PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
            {
                SendClientMessage(playerid, COLOR_WHITE,"Welcome to FBI vehicle.");
            }
            else
            {
                new Float:X, Float:Y, Float:Z;
                GetPlayerPos(playerid, X, Y, Z);
                SetPlayerPos(playerid, X, Y, Z+3);
                SendClientMessage(playerid, COLOR_WHITE,"You don't have keys of this vehicle.");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Before the player enters the car - by PaulDinam - 23.09.2012, 08:28
Re: Before the player enters the car - by xMCx - 23.09.2012, 08:33
Re: Before the player enters the car - by PaulDinam - 23.09.2012, 08:44
Re: Before the player enters the car - by Riddy - 23.09.2012, 08:47
Re: Before the player enters the car - by PaulDinam - 23.09.2012, 10:41
Re: Before the player enters the car - by clarencecuzz - 23.09.2012, 10:48
Re: Before the player enters the car - by mamorunl - 23.09.2012, 11:16
Re: Before the player enters the car - by clarencecuzz - 23.09.2012, 11:24
Re: Before the player enters the car - by PaulDinam - 23.09.2012, 11:45
Re: Before the player enters the car - by clarencecuzz - 23.09.2012, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)