26.06.2009, 17:17
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:x_pos, Float:y_pos, Float:z_pos;
if((GetVehicleModel(vehicleid) == _MODEL_ID_YOU_WANT_) && (!_IS_PLAYER_COP_DEFINE_[playerid]))
{
GetPlayerPos(playerid, x_pos, y_pos, z_pos);
SetPlayerPos(playerid, x_pos, y_pos, z_pos);
SendClientMessage(playerid, 0xFFFFFFAA, "You can't enter this vehicle!");
}
return 1;
}