HeArTBeaT Posted March 22, 2013 Share Posted March 22, 2013 Can anybody tell me if what I did is correct? function createTeam (Chinese Remnants) createTeam (121, 160.26131, -1846.62866, 3.77344) end Link to comment
iPrestege Posted March 22, 2013 Share Posted March 22, 2013 (edited) No it's not! for example : local team = createTeam("teamName",r,g,b) Edited March 22, 2013 by Guest Link to comment
HeArTBeaT Posted March 22, 2013 Author Share Posted March 22, 2013 so r , g ,b is the possition? then where to place the skin id Link to comment
iPrestege Posted March 22, 2013 Share Posted March 22, 2013 so r , g ,b is the possition?then where to place the skin id No it's not ! this function just create team read the wiki : createTeam Link to comment
PaiN^ Posted March 22, 2013 Share Posted March 22, 2013 r, g, b is the color ( r = Red, g = Green, b = Blue ) + createTeam dose not have a skin argument, But you can do it like : Team = getPlayerTeam( player ) if Team and getTeamName(Team) == 'TeamName' then setElementModel( player, skinID ) end Link to comment
EstrategiaGTA Posted March 22, 2013 Share Posted March 22, 2013 See this: createTeam The R, G, B are for the color ^^ Link to comment
HeArTBeaT Posted March 22, 2013 Author Share Posted March 22, 2013 r, g, b is the color ( r = Red, g = Green, b = Blue )+ createTeam dose not have a skin argument, But you can do it like : Team = getPlayerTeam( player ) if Team and getTeamName(Team) == 'TeamName' then setElementModel( player, skinID ) end So this does what exactly? Creates a team that the player can choose or? Link to comment
iPrestege Posted March 22, 2013 Share Posted March 22, 2013 Well let's be clear over what you are trying to do? Link to comment
HeArTBeaT Posted March 22, 2013 Author Share Posted March 22, 2013 I want to make 4 teams . each team has its own skin , and base. a player that will enter the server will get to choose what team he wants to be on . I only need a example how it should be , then I will learn from trying Link to comment
EstrategiaGTA Posted March 22, 2013 Share Posted March 22, 2013 A base? Do it you in Map Editor and for go to the base you can use: addCommandHandler setElementPosition getElementType Also use: createTeam getPlayerTeam getTeamName setElementModel Sorry if I'm wrong, but I don't know what you're going to try. Link to comment
iPrestege Posted March 22, 2013 Share Posted March 22, 2013 You Can Do All That Using : createTeam spawnPlayer But I have a question! How do you using this functions?Using a button? Or what? Link to comment
HeArTBeaT Posted March 23, 2013 Author Share Posted March 23, 2013 You Can Do All That Using : createTeam spawnPlayer But I have a question! How do you using this functions?Using a button? Or what? nO i WANT TO USE IT FROM A CONTROL PANEL Link to comment
HeArTBeaT Posted March 25, 2013 Author Share Posted March 25, 2013 Ok I got a old TDM script from someone. I posted it , can you tell me what I need to modify to change team names , spawn locations and skins? This is client not server I modified it a bit (as much as I knew) fadeCamera(true,5) setCameraMatrix( -1455.2576904297, 700, 95 ,-1527.845703125, 691.43920898438, 111) showPlayerHudComponent ( "all", false ) local function teamauswahleng() destroyElement(flagbox) Teambox = guiCreateWindow(0.3766,0.3417,0.2539,0.1406,"choose a Team",true) guiWindowSetSizable(Teambox,false) teamabtn = guiCreateButton(15,33,100,82,"test",false,Teambox) teambbtn = guiCreateButton(210,35,100,82,"Caesar's Legion",false,Teambox) showCursor(true) addEventHandler("onClientGUIClick", teamabtn, function() destroyElement(Teambox) showCursor(false) fadeCamera(false,5) setTimer(function() showPlayerHudComponent ( "all", true ) showPlayerHudComponent ( "area_name", false ) showPlayerHudComponent ( "Money", false ) triggerServerEvent("TeamAauswahl", getLocalPlayer()) removeEventHandler("onClientRender",root,infobox) end,5000,1) end) addEventHandler("onClientGUIClick", teambbtn, function() destroyElement(Teambox) showCursor(false) fadeCamera(false,5) setTimer(function() showPlayerHudComponent ( "all", true ) showPlayerHudComponent ( "area_name", false ) showPlayerHudComponent ( "Money", false ) triggerServerEvent("TeamBauswahl", getLocalPlayer()) removeEventHandler("onClientRender",root,infobox) end,5000,1) end) end local function teamauswahlger() destroyElement(flagbox) Teambox = guiCreateWindow(0.3766,0.3417,0.2539,0.1406,"Wählen Sie bitte ein Team aus",true) guiWindowSetSizable(Teambox,false) teamabtn = guiCreateButton(15,33,100,82,"test",false,Teambox) teambbtn = guiCreateButton(210,35,100,82,"Caesar's Legion",false,Teambox) showCursor(true) addEventHandler("onClientGUIClick", teamabtn, function() destroyElement(Teambox) showCursor(false) fadeCamera(false,5) setTimer(function() showPlayerHudComponent ( "all", true ) showPlayerHudComponent ( "area_name", false ) showPlayerHudComponent ( "Money", false ) triggerServerEvent("TeamAauswahl", getLocalPlayer()) removeEventHandler("onClientRender",root,infobox) end,5000,1) end) addEventHandler("onClientGUIClick", teambbtn, function() destroyElement(Teambox) showCursor(false) fadeCamera(false,5) setTimer(function() showPlayerHudComponent ( "all", true ) showPlayerHudComponent ( "area_name", false ) showPlayerHudComponent ( "Money", false ) triggerServerEvent("TeamBauswahl", getLocalPlayer()) removeEventHandler("onClientRender",root,infobox) end,5000,1) end) end setTimer(function() flagbox = guiCreateWindow(0.3766,0.3417,0.2539,0.1406,"choose a Language/wähle eine Sprache",true) guiWindowSetSizable(flagbox,false) flageng = guiCreateStaticImage(15,33,100,82,"images/language/eng.png",false,flagbox) flagger = guiCreateStaticImage(210,35,100,82,"images/language/ger.png",false,flagbox) flagengbtn = guiCreateButton(15,33,100,82,"",false,flagbox) flaggerbtn = guiCreateButton(210,35,100,82,"",false,flagbox) showCursor(true) function infobox() dxDrawImage ( -15, 870, 250, 100, 'images/info.png', 0, 0, 0 ) local scriptinfo = dxDrawText("Script by HeArTBeaT",10, 885, 1265, 1000, tocolor(255,255,255,255),1,"pricedown","left","top",true,false,false) local versioninfo = dxDrawText("Fallout San Andreas",10, 917, 1265, 939,tocolor(255,255,255,255),1,"pricedown","left","top",true,false,false) end addEventHandler("onClientRender",root,infobox) addEventHandler("onClientGUIClick", flagengbtn, function() teamauswahleng() end) addEventHandler("onClientGUIClick", flaggerbtn, function() teamauswahlger() end) end,5000,1) Link to comment
Cadu12 Posted April 3, 2013 Share Posted April 3, 2013 Show your error, so we can fix your problems. (/debugscript 3 ingame) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now