Private Vehicles with LuxAdmin
#1

Hello, i want to creat Private vehicles for V.I.P Only with LuxAdmin

how to do it?
Reply
#2

Put all the cars into a varible...

new VIPCars[numberofcars]; - // you can use this or...

new VIPCars;

then under OnGameModeInit

VIPCars[carumber] = Car here

or

VIPCars = Car Here

Then under OnPlayerEnterVehicle

pawn Код:
if(VIPCars)
{
    If (PlayerInfo[playerid][pVIP] == 1)
    {
     return 1;
    }
    else
    {
     RemovePlayerFromVehicle(playerid);
     SendClientMessage(playerid, colour, "You are not a VIP");
     }
return 1;
}
Untested
Reply
#3

i don't understand, where i put the Coordination of The Car and Model ID ?
Reply
#4

Here

VIPCars = CreateVehicle(model, x, y, z etc....


Sorry if I was unclear i havnt posted on these forums in time.
Reply
#5

Last Question Please, i need to put all this in LuxAdmin Script or new FS?
Reply
#6

YOu need to put it in the LuxAdmin Script because your player enum is there right?




This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds. - This is why people dont help other people
Reply
#7

Yea i Must Put it There . Thank you a lot Ice !
Reply
#8

Quote:
Originally Posted by ServerScripter
Посмотреть сообщение
Yea i Must Put it There . Thank you a lot Ice !
Im not sure if your asking but if you are

Yes you do because thats where pVIP has to be defined or you'll get a error saying it cant find pVIP unless you make a second player enum and a second saving system linked to the other and save it that way but its more complicated

Plus im glad i helped
Reply
#9

Do you have to put exactly like this "new VIPCars[numberofcars];" or what do you mean with [numberofcars]?
Reply
#10

You have to put how meny cars you have in your script -1 or if thats to hard for you to understand do it the easy way and just put

new VIPCars;

then VIPCars = CreateVeh....etc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)