Im sorry, but still no effect... nothing changes...
Im using this for selecting the mafia (Luigi skin, spawning at Leones house) this is in content.xml and works OKay.
<class team="1" skin="107" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
I pasted your code to Main.nut (probbably wrong file right...)
function onClientRequestClass( plrclass )
{
if ( !Team.Visible ) Team.Visible = true;
local team = plrclass.Team;
if ( team == 1 )
{
Team.Text = "Mafia";
local SpawnPos = RandSpawns[ team - 1 ][ 0 ]; //--- replace it to localplr.SpawnPos :)
if ( SpawnPos )
{
lP.Pos = Vector( SpawnPos.x, SpawnPos.y, SpawnPos.z + 1 );
SetCameraMatrix( Vector( SpawnPos.x, SpawnPos.y + 5, SpawnPos.z + 1 ), SpawnPos );
}
}
}
idk, im sure its my fault, or im looking for the wrong thing, i was trying to make a text announcement when you spawn as luigi (or class 1) at the house, you se text MAFIA for a few seconds.
Still having no luck with geting weapons at spawning, or if somebody could atleast help me make a weapon pickup that reapears every 5 seconds...
I hope im not bugging you :p and this is not coding requesting, i yust think i learn faster if someone shows me the code... thats how i learned php and html etc...
----------EDIT-----------------
Wel now i discovered that the weapons at spawning work, but only for one character :S if i spawn as 8-ball i have the weapons when i spawn, if i spawn as any other charracter of any class, i dont have weapons...
the code i use for character spawning is:
<class team="1" skin="84" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="97" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="98" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="99" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="101" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="103" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="107" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="109" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="108" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="1" skin="115" colour="1" x="1460.6" y="-178.37" z="55.77" angle="123.048" sscreen="0"/>
<class team="2" skin="1" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="2" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="3" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="4" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="88" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="89" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="92" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="94" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="2" skin="121" colour="2" x="1168.4" y="-666.1" z="18.89" angle="349.276" sscreen="0"/>
<class team="3" skin="12" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="13" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="16" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="17" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="43" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="47" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="85" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="3" skin="87" colour="3" x="980.4" y="-696.6" z="14.97" angle="174.301" sscreen="0"/>
<class team="4" skin="9" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="14" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="15" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="22" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="23" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="24" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="25" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="37" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="38" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="40" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="4" skin="42" colour="4" x="1271.3" y="-1107.4" z="12.13" angle="277.641" sscreen="0"/>
<class team="5" skin="55" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="56" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="18" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="19" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="48" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="51" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="77" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="79" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="80" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
<class team="5" skin="120" colour="5" x="1163.9" y="-7.47" z="1.67" angle="358.292" sscreen="0"/>
I have 5 classes :
1=mafia
2=police
3=triads
4=diablos
5=bums
the weapons code i use is
<weapon class="1" model="6" ammo="50"/>
<weapon class="1" model="2" ammo="50"/>
<weapon class="1" model="1" ammo="1"/>
<weapon class="1" model="11" ammo="50"/>
<weapon class="2" model="3" ammo="50"/>
<weapon class="2" model="2" ammo="50"/>
<weapon class="2" model="1" ammo="1"/>
<weapon class="2" model="11" ammo="50"/>
<weapon class="3" model="5" ammo="50"/>
<weapon class="3" model="2" ammo="50"/>
<weapon class="3" model="1" ammo="1"/>
<weapon class="3" model="11" ammo="50"/>
<weapon class="4" model="5" ammo="50"/>
<weapon class="4" model="2" ammo="50"/>
<weapon class="4" model="1" ammo="1"/>
<weapon class="4" model="11" ammo="50"/>
<weapon class="5" model="5" ammo="50"/>
<weapon class="5" model="2" ammo="50"/>
<weapon class="5" model="1" ammo="1"/>
<weapon class="5" model="11" ammo="50"/>
That means every team gets a rifle, bat, pistol and granades...
This code didnot work til i tryed it today, but suddenly it works... but only with 8-ball
You can try to connect to my server:
Name: Anticefur uradni server
Ip: 93.103.34.187:5001
Password: burek