PHP код:
#include "a_samp.inc"
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
SetPVarInt(playerid,"Vehicle",1);
return true;
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(!GetPVar(playerid,"Vehicle"))return Kick(playerid);
DeletePVar(playerid,"Vehicle");
return true;
}