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

hey guys....anyone know how to set a vehicle for example hydra for VIP members?
Reply
#2

nobody can help?! :S is there any tutorial?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)