Is this possible
#5

Quote:
Originally Posted by DBan
Посмотреть сообщение
Afaik, no, because well again afaik, SAMP cannot tell what vehicle you're entering, but it can tell what vehicle you're in.
But who knows.
Bullshit, complete bullshit.
Here, take a look at my piece of code.


pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(CarInfo[vehicleid][CarLock] == 1)
    {
        ClearAnimations(playerid);
    }
    if(ispassenger == 0)
    {
        if(familyteam[vehicleid] != 0 && familyteam[vehicleid] != PlayerInfo[playerid][Family])
        {
            ClearAnimations(playerid);
        }
        else if(vteam[vehicleid] > 0 && vteam[vehicleid] != PlayerInfo[playerid][Fmember] && vteam[vehicleid] != 59 && vteam[vehicleid] != 2994 && vteam[vehicleid] != 2995)
        {
            ClearAnimations(playerid);
        }
        else if(vjob[vehicleid] > 0 && vjob[vehicleid] != PlayerInfo[playerid][pJob])
        {
            ClearAnimations(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Is this possible - by Euan Hughes - 06.07.2012, 14:25
Re: Is this possible - by DBan - 06.07.2012, 14:29
Re: Is this possible - by Calgon - 06.07.2012, 14:30
Re: Is this possible - by Basssiiie - 06.07.2012, 14:31
Re: Is this possible - by milanosie - 06.07.2012, 14:32
Re: Is this possible - by Euan Hughes - 06.07.2012, 14:33
Re: Is this possible - by DBan - 06.07.2012, 14:35
Re: Is this possible - by milanosie - 06.07.2012, 14:36
Re: Is this possible - by Calgon - 06.07.2012, 14:38
Re: Is this possible - by Euan Hughes - 06.07.2012, 17:17

Forum Jump:


Users browsing this thread: 2 Guest(s)