Some Player Class With RGB Colour And Weapons

Started by Jutt, Jun 12, 2022, 10:13 AM

Previous topic - Next topic

Jutt

In In Main.Nut
function onPlayerRequestClass( player, classID, team, skin ){
player.SetAnim(28,228)
AddClass( 1, RGB(125, 200, 11), 0, Vector(-378.342, -581.046, 25.3215), -0.0434318, 19, 9999, 26, 9999, 24, 9999);
AddClass( 2, RGB(255, 159, 246), 108, Vector(117.84, -824.687, 10.4633), 1.01906, 11, 9999, 21, 9999, 28, 9999);
AddClass( 3, RGB(159, 194, 255), 5, Vector(-883.711, -470.827, 13.1101), -1.63093, 18, 9999, 20, 9999, 27, 9999);
AddClass( 4, RGB(255, 101, 101), 94, Vector(-596.978, 650.021, 11.6765), 0.16155, 32, 9999, 34, 9999, 19, 9999);
AddClass( 5, RGB(0, 255, 240), 55, Vector(-568.998, 794.807, 22.8768), 1.62748, 20, 9999, 26, 9999, 23, 9999);
AddClass( 6, RGB(140, 200, 0), 2, Vector(-657.366, 762.206, 11.5999), 2.34252, 20, 9999, 26, 9999, 27, 9999);
Announce("Please choose a team and spawn",player,1);
return 1;
}

In Server.Conf

<Class team="1" skin="0" x="-378.342" y="-581.046" z="25.3215" angle="-0.0434318" weapon1="19" ammo1="999" weapon2="26" ammo2="999" weapon3="24" ammo3="999" r="125" g="200" b="11"/>
<Class team="2" skin="108" x="117.84" y="-824.687" z="10.4633" angle="1.01906" weapon1="11" ammo1="999" weapon2="21" ammo2="999" weapon3="28" ammo3="999" r="255" g="159" b="246"/>
<Class team="3" skin="5" x="-883.711" y="-470.827" z="13.1101" angle="-1.63093" weapon1="18" ammo1="999" weapon2="20" ammo2="999" weapon3="27" ammo3="999" r="159" g="194" b="255"/>
<Class team="4" skin="94" x="-596.978" y="650.021" z="11.6765" angle="0.16155" weapon1="32" ammo1="999" weapon2="34" ammo2="999" weapon3="19" ammo3="999" r="255" g="101" b="101"/>
<Class team="5" skin="55" x="-568.998" y="794.807" z="22.8768" angle="1.62748" weapon1="20" ammo1="999" weapon2="26" ammo2="999" weapon3="23" ammo3="999" r="0" g="255" b="240"/>
<Class team="6" skin="2" x="-657.366" y="762.206" z="11.5999" angle="2.34252" weapon1="20" ammo1="999" weapon2="26" ammo2="999" weapon3="27" ammo3="999" r="140" g="200" b="0"/>
Jutt