Quote:
Originally Posted by AeroBlast
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == vid) //Fill in the vehicle id { if(GetPlayerSkin(playerid) != skin) //Fill in the skin { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xFF0000FF, "you cant drive this"); } } return 1; }
Forgot the e in RemovePlayerFromVehicle.. :/
|
Not that i mean
When iam enter vehicle without skin 27 iam still can enter, but i want to enter vehicle (only) with skin 27