Quote:
Originally Posted by Undef1ned
Why so many complications with this issue?
PHP Code:
//OnPlayerStateChange
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 520 && User[playerid][accountVIP] <= 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "If this does not work, then there may be functions that prevent the
execution of this.!");
}
}
Remember not to use improper returns on this callback.
|
Thank you, managed to make it work.
One last question, is there a way i can lock the vehicle instead of letting the player in the vehicle then kick him out?
Or just cancel the enteronvehicle animation?
Because there is a slight delay that lets the player into the vehicle(hydra) and you can just spam rockets.
Thank you everyone for your replies.