Show Posts
|
Pages: 1 [2] 3 4
|
30
|
Scripting / Script Help / Re: Need help with class name and class weapon spawn
|
on: March 18, 2011, 08:14:20 am
|
lol this is my spawn selection screen well you need know the gui functions to do that http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Functions#GUI_Functions, and i am not using the class thingy, use the team.id, look this small part of my script 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 ); } } and my skin is "<class team="1" skin="107" colour="2" x="1000.10" y="-885.20" z="15.34" angle="0.0" sscreen="0"/>" the number 1 is the mafia gang well good luck
|
|
|
|