Reserved Car?
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Pname[24];
    GetPlayerName(playerid, Pname, 24);
    if(vehicleid == /*The certain vehicle ID you want to restrict*/ && strcmp(Pname, /*Name you want to restrict the car to*/, true) && ispassenger == 0)
    {
        new Float:Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    }
    return 1;
}
Reply


Messages In This Thread
Reserved Car? - by Quest123 - 01.09.2010, 07:59
Re: Reserved Car? - by [HiC]TheKiller - 01.09.2010, 08:10
Re: Reserved Car? - by Quest123 - 01.09.2010, 08:59
Re: Reserved Car? - by R@ger - 01.09.2010, 09:09

Forum Jump:


Users browsing this thread: 1 Guest(s)