I need some help with Restricted Vehicle to a Name.
#6

Quote:
Originally Posted by azzerking
Посмотреть сообщение
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;
}
Sorry for double post , but mate that isn't what i had in mind xD

I meant like that vehicle only, not all vehicle's those are spawn'd with same ID should be restricted..

Thanks for the reply tho .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)