03.12.2009, 18:43
How about SetPlayerHealth(playerid,0.0); at OnPlayerEnterVehicle
A bit noobish, but it will do what it should, and after a couple if kills the player should have understood to stay away.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if((GetPlayerVehicleID(vehicleid) == 432)||(GetPlayerVehicleID(vehicleid) == 425)||(GetPlayerVehicleID(vehicleid) == 520)
{
if(DMZone[playerid] == 0)
{
SetPlayerHealth(playerid,0.0);
SendClientMessage(playerid,0xFFFFFFAA,"SERVER: You cannot enter this vehicle while not in the /dm zone.");
return 1;
}
}
return 1;
}