Posts: 1,228
Threads: 133
Joined: Oct 2009
Reputation:
0
I was just wondering. Basically on a server you can't use a hydra unless you are rank 5. So when you get in and you'r not rank 5, it kicks you out.
Somehow, sometimes people who are not rank 5 can fly it.. How is this possible ?
Posts: 6,129
Threads: 36
Joined: Jan 2009
RemovePlayerFromVehicle sometimes, but rarely, doesn't properly eject a player out of a vehicle. Plus, the famous 'NOP RemovePlayerFromVehicle' is often used. Some servers seem to counteract it with setting the player position away from the vehicle, though.
Posts: 254
Threads: 36
Joined: Nov 2011
Reputation:
0
You need to do this (depening on your player info variables) (under OnPlayerEnterVehicle)
new vid = GetPlayerVehicleID(playerid);
new vehicle =GetVehicleModel(vid);
if(PlayerInfo[playerid][Rank] < 5 && Vehicleid == 520))
{
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(playerid, posx, posy, posz);
SetPlayerPos(playerid, posx, posy, posz);
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_HERE, "You must be rank 5 to enter this vehicle!");
return 1;
}