how to set a vehicle for VIP on Lux admin? - 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: how to set a vehicle for VIP on Lux admin? (
/showthread.php?tid=283259)
how to set a vehicle for VIP on Lux admin? -
Ecstacy - 14.09.2011
hey guys....anyone know how to set a vehicle for example hydra for VIP members?
Re: how to set a vehicle for VIP on Lux admin? -
Ecstacy - 14.09.2011
nobody can help?! :S is there any tutorial?
Re: how to set a vehicle for VIP on Lux admin? -
Wesley221 - 14.09.2011
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.