21.02.2019, 16:29
Hi Alex, in OnPlayerEnterVehicle:
No need for anything else.
Edit:
You could additionally add a timer which checks for players in a Hydra, that are not allowed to be in there and slap them out. Lag or desync might let them enter the Hydra in any case. Respawning the Hydra would be efficient in this case too.
Code:
if(GetVehicleModel(vehicleid) == 520 && User[playerid][accountVIP] <= 0) { TogglePlayerControllable(playerid, false); TogglePlayerControllable(playerid, true); SendClientMessage(playerid, 0xFF0000FF, "[Error] Only VIPs are allowed to use a Hydra."); }
Edit:
You could additionally add a timer which checks for players in a Hydra, that are not allowed to be in there and slap them out. Lag or desync might let them enter the Hydra in any case. Respawning the Hydra would be efficient in this case too.