Player does not get kicked out of a vehicle
#1

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    new 
model GetVehicleModel(vehicleid);
    if(
model == 541)
    {
    if (
GetPlayerSkin(playerid) != ) return SendClientMessage(playerid, -1"You may not drive this vehicle!")|| RemovePlayerFromVehicle(playerid);
    }
    return 
1;

If a player does not have skin 0, he shouldn't be able to enter vehicle ID 541. But when that happens, he gets the "you may not drive this vehicle" but he does not get kicked as the text shows at the instant the player presses F.
How to make this work?
Reply


Messages In This Thread
Player does not get kicked out of a vehicle - by 69 - 02.11.2012, 21:18
Re : Player does not get kicked out of a vehicle - by 69 - 02.11.2012, 21:42
Re: Player does not get kicked out of a vehicle - by [KHK]Khalid - 02.11.2012, 21:43
Re : Player does not get kicked out of a vehicle - by 69 - 02.11.2012, 22:05
Re : Player does not get kicked out of a vehicle - by 69 - 03.11.2012, 09:00
Re: Player does not get kicked out of a vehicle - by Emre__ - 03.11.2012, 09:35
Re : Re: Player does not get kicked out of a vehicle - by 69 - 03.11.2012, 09:43
Re: Player does not get kicked out of a vehicle - by iggy1 - 03.11.2012, 10:07

Forum Jump:


Users browsing this thread: 3 Guest(s)