19.04.2013, 21:57
Nope, it would be like this:
PHP код:
public OnPlayerExitVehicle (playerid, vehicleid)
{
if(vehicleid == GetPVarInt(playerid, "AdminVeh")) // You need to include this or it will always destroy the vehicle when the player exits it, regardless of if it is a server vehicle or not
{
DestroyVehicle(vehicleid);
DeletePVar(playerid, "AdminVeh");
SendClientMessage(playerid, -1, "You have left your admin vehicle and it has been destroyed.");
}
}