27.07.2012, 14:39
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(PlayerInfo[playerid][CarLic] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "Access Denied.");
SendClientMessage(playerid, COLOR_RED, "*?? ??????? ?? ????? ??? ????? ?? ??");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ??????????");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ?????-??????? ???????");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ?? ???????? ????????");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ???????????");
SendClientMessage(playerid, COLOR_RED, "*??? ?? ??????? ?? ????????????? ?? ????? ?? ?????");
return 0;
}
else if(PlayerInfo[playerid][TruckLic] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "*?? ??????? ?? ????? ??? ????? ?? ??");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ?????-??????? ???????");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ?? ???????? ????????");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ???????????");
SendClientMessage(playerid, COLOR_RED, "*??? ?? ??????? ?? ????????????? ?? ????? ?? ?????");
return 0;
}
else if(PlayerInfo[playerid][HeliLic] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "*?? ??????? ?? ????? ??? ????? ?? ??");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ?? ???????? ????????");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ???????????");
SendClientMessage(playerid, COLOR_RED, "*??? ?? ??????? ?? ????????????? ?? ????? ?? ?????");
return 0;
}
else if(PlayerInfo[playerid][BikeLic] == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "*?? ??????? ?? ????? ??? ????? ?? ??");
SendClientMessage(playerid, COLOR_RED, "*?????? ?? ???????????");
SendClientMessage(playerid, COLOR_RED, "*??? ?? ??????? ?? ????????????? ?? ????? ?? ?????");
return 0;
}
if(PlayerInfo[playerid][CarLic] == 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, "*?? ???? ??????? ? ????? ?? ?????");
return 0;
}
else if(PlayerInfo[playerid][TruckLic] == 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, "*?? ???? ??????? ? ????? ?? ?????");
return 0;
}
else if(PlayerInfo[playerid][HeliLic] == 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, "*?? ???? ??????? ? ????? ?? ?????");
return 0;
}
else if(PlayerInfo[playerid][BikeLic] == 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, "*?? ???? ??????? ? ????? ?? ?????");
return 0;
}
return 0;
}