How To Make A Admin Vehicle Only!
#2

pawn Код:
#include <a_samp>
new
    AdminVehicle;

public OnFilterScriptInit()
{
    AdminVehicle = AddStaticVehicle(541,711.4348,1948.3846,5.0976,179.8788, -1, -1); //Bullet
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(Vehicle == AdminVehicle && !IsPlayerAdmin(playerid))
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, 0x33AA33AA, "I'm sorry, but this car has been reserved for Admins only!");
    }
    return 1;
}
Should work (NOT TESTED). I also think there is a tutorial about somewhere. This also should've been posted in Scripting Discussion.
Reply


Messages In This Thread
How To Make A Admin Vehicle Only! - by Moss - 05.09.2010, 17:37
Re: How To Make A Admin Vehicle Only! - by Burridge - 05.09.2010, 17:56
Re: How To Make A Admin Vehicle Only! - by willsuckformoney - 05.09.2010, 17:59
Re: How To Make A Admin Vehicle Only! - by ipsBruno - 05.09.2010, 18:03
Re: How To Make A Admin Vehicle Only! - by Burridge - 05.09.2010, 18:19
Re: How To Make A Admin Vehicle Only! - by Sergei - 05.09.2010, 18:44
Re: How To Make A Admin Vehicle Only! - by ipsBruno - 05.09.2010, 18:47

Forum Jump:


Users browsing this thread: 3 Guest(s)