how to set a vehicle for VIP on Lux admin?
#3

pawn Код:
new Hydra[Amount of hydra + 1 in here];

Hydra[0] = CreateVehicle( ----- ); // create all the hydras with this variable

OnPlayerEnterVehicle
if( PlayerInfo[playerid][pVip] < 1 ) // checks if the player isnt a vip, change the variable to yours
{
    new Float:pos[3];
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]); // gets the player position
    SetPlayerPos(playerid, pos[0], pos[1], pos[2]); // sets the player position so the player cant enter the vehicle
    SendClientMessage(playerid, COLOR, "You are no vip and cannot enter this vehicle! ");
}
This will do it.
And dont bump your topics in atleast 12/24 hours.
Reply


Messages In This Thread
how to set a vehicle for VIP on Lux admin? - by Ecstacy - 14.09.2011, 07:36
Re: how to set a vehicle for VIP on Lux admin? - by Ecstacy - 14.09.2011, 08:24
Re: how to set a vehicle for VIP on Lux admin? - by Wesley221 - 14.09.2011, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)