Private Vehicles with LuxAdmin -
ServerScripter - 28.08.2011
Hello, i want to creat Private vehicles for V.I.P Only with LuxAdmin
how to do it?
Re: Private Vehicles with LuxAdmin -
IceCube! - 28.08.2011
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
Re: Private Vehicles with LuxAdmin -
ServerScripter - 28.08.2011
i don't understand, where i put the Coordination of The Car and Model ID ?
Re: Private Vehicles with LuxAdmin -
IceCube! - 28.08.2011
Here
VIPCars = CreateVehicle(model, x, y, z etc....
Sorry if I was unclear i havnt posted on these forums in time.
Re: Private Vehicles with LuxAdmin -
ServerScripter - 28.08.2011
Last Question Please, i need to put all this in LuxAdmin Script or new FS?
Re: Private Vehicles with LuxAdmin -
IceCube! - 28.08.2011
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
Re: Private Vehicles with LuxAdmin -
ServerScripter - 28.08.2011
Yea i Must Put it There . Thank you a lot Ice !
Re: Private Vehicles with LuxAdmin -
IceCube! - 28.08.2011
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
Re: Private Vehicles with LuxAdmin -
maikel saliba - 28.08.2011
Do you have to put exactly like this "new VIPCars[numberofcars];" or what do you mean with [numberofcars]?
Re: Private Vehicles with LuxAdmin -
IceCube! - 28.08.2011
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