SA-MP Forums Archive
Admin Vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin Vehicle (/showthread.php?tid=283950)



Admin Vehicle - Sting. - 17.09.2011

Ok guys, I want to spawn a jet, but only for admins.Now I dont want players to enter the jet and use it, Can something be done with OnPlayerEnterVehicle? Can someone help me...


Re: Admin Vehicle - wouter0100 - 17.09.2011

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!IsPlayerAdmin(playerid) && vehicleid == [Vehicleid of the jet]) RemovePlayerFromVehicle(playerid);
    return 1;
}



Re: Admin Vehicle - Sting. - 17.09.2011

Thank You.