how to make a kind of car admin only
#5

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Mo3
1.) OnPlayerEnterVehicle
2.) GetPlayerVehicleModel
3.) if(model == ADMINCAR)
4.) RemovePlayerFromVehicle
It won't work if you're going to use RemovePlayerFromVehicle function at OnPlayerEnterVehicle callback because OnPlayerEnterVehicle callback is called when player is trying to enter the vehicle, so you can't remove him if he isn't in.
I would suggest you to use OnPlayerStateChange callback in which you would check if the old state is on foot and if the new state is driver/passenger.
But you could also use SetPlayerPos function with OnPlayerEnterVehicle in which you would get the player's current position and set it to that position.
And GetPlayerVehicleModel doesn't exist, it's GetVehicleModel.
could you make a part of the code so i got a begin otherwish i cant make a start...
Reply


Messages In This Thread
how to make a kind of car admin only - by security - 09.01.2010, 10:32
Re: how to make a kind of car admin only - by Striker_Moe - 09.01.2010, 10:43
Re: how to make a kind of car admin only - by security - 09.01.2010, 11:06
Re: how to make a kind of car admin only - by Correlli - 09.01.2010, 11:09
Re: how to make a kind of car admin only - by security - 09.01.2010, 11:20
Re: how to make a kind of car admin only - by Correlli - 09.01.2010, 11:28
Re: how to make a kind of car admin only - by security - 09.01.2010, 11:37
Re: how to make a kind of car admin only - by Correlli - 09.01.2010, 11:40
Re: how to make a kind of car admin only - by security - 09.01.2010, 11:42
Re: how to make a kind of car admin only - by Correlli - 09.01.2010, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)