It is very important for the history, as well as for popularization, to make a full pack of a fun server and client for everyone
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote<!-- Police Officer -->For main.nut:
<Class team="5" skin="1" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="4" ammo1="1" weapon2="17" ammo2="90" weapon3="19" ammo3="90"/>
<!-- SWAT -->
<Class team="15" skin="2" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="23" ammo1="240" weapon2="33" ammo2="899" weapon3="14" ammo3="60"/>
<!-- FBI Agent -->
<Class team="30" skin="3" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="20" ammo1="90" weapon2="25" ammo2="90" weapon3="30" ammo3="30"/>
<!-- Army Soldier / Солдат армии -->
<Class team="45" skin="4" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="26" ammo1="240" weapon2="29" ammo2="90" weapon3="30" ammo3="30"/>
<!-- Paramedic -->
<Class team="60" skin="5" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="2" ammo1="1" weapon2="18" ammo2="90" weapon3="21" ammo3="90"/>
<!-- Fireman -->
<Class team="75" skin="6" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="15" ammo1="30" weapon2="24" ammo2="240" weapon3="31" ammo3="4000"/>
<!-- Taxi Driver -->
<Class team="90" skin="28" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="22" ammo1="240" weapon2="11" ammo2="1" weapon3="28" ammo3="90"/>
<!-- Tommy Vercetti (Robbery Suit) -->
<Class team="105" skin="167" x="-293.0143" y="-597.0593" z="12.8528" angle="130.0325" weapon1="11" ammo1="1" weapon2="24" ammo2="240" weapon3="32" ammo3="320"/>
<Pickup model="288" type="1" x="-285.0143" y="-589" z="12.8"/> <!-- Flame Thrower -->
<Pickup model="283" type="1" x="-285.0143" y="-592" z="12.8"/> <!-- Ingram -->
<Pickup model="290" type="1" x="-285.0143" y="-595" z="12.8"/> <!-- Minigun -->
<Pickup model="287" type="1" x="-285.0143" y="-598" z="12.8"/> <!-- RPG -->
<Pickup model="278" type="1" x="-285.0143" y="-601" z="12.8"/> <!-- Spaz Shotgun -->
Quote// mapping: pickup.Model -> { wep = <weaponID>, ammo = <amount>, msg = "<text>" }
local PickupWeaponMap = {
[283] = { wep = 24, ammo = 90, msg = "Ingram picked up" },
[290] = { wep = 33, ammo = 500, msg = "Minigun picked up" },
[287] = { wep = 30, ammo = 30, msg = "RPG picked up" },
[288] = { wep = 31, ammo = 400, msg = "Flame Thrower picked up" },
[278] = { wep = 20, ammo = 90, msg = "Spaz Shotgun picked up" }
};
function onPickupPickedUp(player, pickup)
{
if(!player || !pickup) return 1;
local info = PickupWeaponMap.rawin(pickup.Model) ? PickupWeaponMap[pickup.Model] : null;
if(info != null)
{
player.SetWeapon(info.wep, info.ammo);
MessagePlayer("[#81FF81]" + info.msg, player);
return 1;
}
return 1;
}
function onPlayerCommand( player, cmd, text )
{
...
else if(cmd == "armour")
{
player.Armour = 100;
MessagePlayer("[#81FF81]You received full armour!", player);
}
else if(cmd == "where")
{
local pos = player.Pos;
MessagePlayer("You are at: X=" + pos.x + " Y=" + pos.y + " Z=" + pos.z, player);
}