iFoReX Posted February 26, 2013 Share Posted February 26, 2013 why the Player Doesnt spawn ? D: addEventHandler("onClientResourceStart",resourceRoot,function() triggerServerEvent(getLocalPlayer(),"camaras",getLocalPlayer()) bindKey ("enter", "down", Spawn ) bindKey ("arrow_l", "down", Next_team) bindKey ("arrow_r", "down", Previous_team) bindKey ("space", "down", ciudades) addEventHandler("onClientRender",root,texto) setElementData(getLocalPlayer(),"team","army",true) setElementData(getLocalPlayer(),"ciudades","ls",true) end ) addEventHandler("onClientPlayerWasted",root,function() triggerServerEvent("camaras",getLocalPlayer()) bindKey ("enter", "down", Spawn ) bindKey ("arrow_l", "down", Next_team) bindKey ("arrow_r", "down", Previous_team) bindKey ("space", "down", ciudades) addEventHandler("onClientRender",root,texto) end ) addEvent("trigger",true) addEventHandler("trigger",root,function(ped) ped2 = ped end ) function ciudades() if getElementData(getLocalPlayer(),"ciudades") == "ls" then setElementData(getLocalPlayer(),"ciudades","lv",true) elseif getElementData(getLocalPlayer(),"ciudades") == "lv" then setElementData(getLocalPlayer(),"ciudades","sf",true) elseif getElementData(getLocalPlayer(),"ciudades") == "sf" then setElementData(getLocalPlayer(),"ciudades","ls",true) end end function Spawn() triggerServerEvent(,"spawn",getLocalPlayer()) setCameraTarget(getLocalPlayer()) unbindKey ("enter", "down", Spawn ) unbindKey ("arrow_l", "down", Next_team) unbindKey ("arrow_r", "down", Previous_team) unbindKey ("space", "down", ciudades) removeEventHandler("onClientRender",root,texto) end function Next_team() if getElementData(getLocalPlayer(),"team") == "army" then setElementData(getLocalPlayer(),"team","robber",true) setElementModel(ped2,105) elseif getElementData(getLocalPlayer(),"team") == "robber" then setElementData(getLocalPlayer(),"team","ss",true) setElementModel(ped2,165) elseif getElementData(getLocalPlayer(),"team") == "ss" then setElementData(getLocalPlayer(),"team","sailor",true) setElementModel(ped2,61) elseif getElementData(getLocalPlayer(),"team") == "sailor" then setElementData(getLocalPlayer(),"team","crusader",true) setElementModel(ped2,247) elseif getElementData(getLocalPlayer(),"team") == "crusader" then setElementData(getLocalPlayer(),"team","army",true) setElementModel(ped2,287) end end function Previous_team() if getElementData(getLocalPlayer(),"team") == "army" then setElementData(getLocalPlayer(),"team","crusader",true) setElementModel(ped2,247) elseif getElementData(getLocalPlayer(),"team") == "crusader" then setElementData(getLocalPlayer(),"team","sailor",true) setElementModel(ped2,61) elseif getElementData(getLocalPlayer(),"team") == "sailor" then setElementData(getLocalPlayer(),"team","ss",true) setElementModel(ped2,165) elseif getElementData(getLocalPlayer(),"team") == "ss" then setElementData(getLocalPlayer(),"team","robber",true) setElementModel(ped2,105) elseif getElementData(getLocalPlayer(),"team") == "robber" then setElementData(getLocalPlayer(),"team","army",true) setElementModel(ped2,287) end end function texto() local sWidth,sHeight = guiGetScreenSize() if getElementData(getLocalPlayer(),"team") == "army" then dxDrawText("Ejercito",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(0,0,255,255),2,"default-bold","left","top",false,false,false) dxDrawText("1x Katana",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Deagle",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("500x M4",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("1x Rocket",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("30x Satchel",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(source,"team","army",true) elseif getElementData(getLocalPlayer(),"team") == "crusader" then dxDrawText("Pandilleros",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(255,255,0,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Pala",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Pistola Silenciadora",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Sawn-Off",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("200x Tec-9",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x Rifle",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("600x Lanzallamas",sWidth*0.500, sHeight*0.600, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","crusader",true) elseif getElementData(getLocalPlayer(),"team") == "sailor" then dxDrawText("Marinero",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(0,255,0,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Palo Golf",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Colt-45",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("20x Escopeta",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x M4",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("15x Granadas",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","sailor",true) elseif getElementData(getLocalPlayer(),"team") == "ss" then dxDrawText("Servicio Secreto",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(0,255,255,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Katana",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Colt-45",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("400x MP5",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x Francotiradora",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("15x Granadas",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","ss",true) elseif getElementData(getLocalPlayer(),"team") == "robber" then dxDrawText("Ladron",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(255,145,0,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Bate",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("400x Colt-45",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("30x Escopeta de Combate",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x Tec-9",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("150x AK-47",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("600x Spray",sWidth*0.500, sHeight*0.600, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","robber",true) end if getElementData(getLocalPlayer(),"ciudades") == "ls" then dxDrawText("Ciudad : Los Santos(Spacebar)",sWidth*0.500, sHeight*0.650, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) elseif getElementData(getLocalPlayer(),"ciudades") == "lv" then dxDrawText("Ciudad : Las Venturas(Spacebar)",sWidth*0.500, sHeight*0.650, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) elseif getElementData(getLocalPlayer(),"ciudades") == "sf" then dxDrawText("Ciudad : San Fierro(Spacebar)",sWidth*0.500, sHeight*0.650, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) end end addCommandHandler("parar",function() setCameraTarget(getLocalPlayer()) end) robbers = createTeam("Ladrones",255,145,0) ss = createTeam("Servicio Secreto",0,255,255) sailor = createTeam("Marinos",0,255,0) crusader = createTeam("Pandilleros",255,255,0) army = createTeam("Ejercito",0,0,255) addEvent("camaras",true) addEventHandler("camaras",root,function() fadeCamera(source,true) setCameraMatrix(source,-2194.19849, -146.32339, 50.35078,-2193.91992, -135.34920, 51.16903) local dims = math.random(100,65535) setElementDimension(source,dims) setElementData(source,"spawn","lobby",true) ped = createPed(287,-2195, -142, 50.35078) setElementRotation(ped,0,0,180) local dim = getElementDimension(source) setElementDimension(ped,dim) setElementData(source,"team","army",true) triggerClientEvent("trigger",source,ped) killPed(source) end ) addEvent("spawn",true) addEventHandler("spawn",root,function() if getElementData(source,"team") == "army" and getElementData(source,"ciudad") == "ls" then setTimer(spawnPlayer,1000,1,source,2200.33301, -2633.04053, 13.54688) setPlayerTeam(source,army) elseif getElementData(source,"team") == "army" and getElementData(source,"ciudad") == "lv" then setTimer(spawnPlayer,1000,1,source,-1528.18640, 360.76633, 7.18750) setCameraTarget(source) setPlayerTeam(source,army) elseif getElementData(source,"team") == "army" and getElementData(source,"ciudad") == "sf" then setTimer(spawnPlayer,1000,1,source,284.83728, 1943.68652, 17.64063) setCameraTarget(source) setPlayerTeam(source,army) elseif getElementData(source,"team") == "crusader" then elseif getElementData(source,"team") == "sailor" then elseif getElementData(source,"team") == "ss" then elseif getElementData(source,"team") == "robber" then end end ) Link to comment
PaiN^ Posted February 26, 2013 Share Posted February 26, 2013 You have an extra comma in line 40, Before "spawn" triggerServerEvent(,"spawn",getLocalPlayer()) Link to comment
DNL291 Posted February 26, 2013 Share Posted February 26, 2013 Also, the triggerServerEvent function in line 2 is wrong. The arguments of triggerServerEvent function are: "event", theElement, [arguments]. Link to comment
iFoReX Posted February 26, 2013 Author Share Posted February 26, 2013 Ok, i fixed it, but now i appear on 0,0,0 when i press enter Code : cl addEventHandler("onClientResourceStart",resourceRoot,function() triggerServerEvent("camaras",getLocalPlayer()) bindKey ("enter", "down", Spawn ) bindKey ("arrow_l", "down", Next_team) bindKey ("arrow_r", "down", Previous_team) bindKey ("space", "down", ciudades) addEventHandler("onClientRender",root,texto) setElementData(getLocalPlayer(),"team","army",true) setElementData(getLocalPlayer(),"ciudades","ls",true) end ) addEventHandler("onClientPlayerWasted",root,function() triggerServerEvent("camaras",getLocalPlayer()) bindKey ("enter", "down", Spawn ) bindKey ("arrow_l", "down", Next_team) bindKey ("arrow_r", "down", Previous_team) bindKey ("space", "down", ciudades) texto() end ) addEvent("trigger",true) addEventHandler("trigger",root,function(ped) ped2 = ped end ) function ciudades() if getElementData(getLocalPlayer(),"ciudades") == "ls" then setElementData(getLocalPlayer(),"ciudades","lv",true) elseif getElementData(getLocalPlayer(),"ciudades") == "lv" then setElementData(getLocalPlayer(),"ciudades","sf",true) elseif getElementData(getLocalPlayer(),"ciudades") == "sf" then setElementData(getLocalPlayer(),"ciudades","ls",true) end end function Spawn() triggerServerEvent("spawn",getLocalPlayer()) setCameraTarget(getLocalPlayer()) unbindKey ("enter", "down", Spawn ) unbindKey ("arrow_l", "down", Next_team) unbindKey ("arrow_r", "down", Previous_team) unbindKey ("space", "down", ciudades) removeEventHandler("onClientRender",root,texto) end function Next_team() if getElementData(getLocalPlayer(),"team") == "army" then setElementData(getLocalPlayer(),"team","robber",true) setElementModel(ped2,105) elseif getElementData(getLocalPlayer(),"team") == "robber" then setElementData(getLocalPlayer(),"team","ss",true) setElementModel(ped2,165) elseif getElementData(getLocalPlayer(),"team") == "ss" then setElementData(getLocalPlayer(),"team","sailor",true) setElementModel(ped2,61) elseif getElementData(getLocalPlayer(),"team") == "sailor" then setElementData(getLocalPlayer(),"team","crusader",true) setElementModel(ped2,247) elseif getElementData(getLocalPlayer(),"team") == "crusader" then setElementData(getLocalPlayer(),"team","army",true) setElementModel(ped2,287) end end function Previous_team() if getElementData(getLocalPlayer(),"team") == "army" then setElementData(getLocalPlayer(),"team","crusader",true) setElementModel(ped2,247) elseif getElementData(getLocalPlayer(),"team") == "crusader" then setElementData(getLocalPlayer(),"team","sailor",true) setElementModel(ped2,61) elseif getElementData(getLocalPlayer(),"team") == "sailor" then setElementData(getLocalPlayer(),"team","ss",true) setElementModel(ped2,165) elseif getElementData(getLocalPlayer(),"team") == "ss" then setElementData(getLocalPlayer(),"team","robber",true) setElementModel(ped2,105) elseif getElementData(getLocalPlayer(),"team") == "robber" then setElementData(getLocalPlayer(),"team","army",true) setElementModel(ped2,287) end end function texto() local sWidth,sHeight = guiGetScreenSize() if getElementData(getLocalPlayer(),"team") == "army" then dxDrawText("Ejercito",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(0,0,255,255),2,"default-bold","left","top",false,false,false) dxDrawText("1x Katana",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Deagle",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("500x M4",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("1x Rocket",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("30x Satchel",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(source,"team","army",true) elseif getElementData(getLocalPlayer(),"team") == "crusader" then dxDrawText("Pandilleros",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(255,255,0,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Pala",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Pistola Silenciadora",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Sawn-Off",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("200x Tec-9",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x Rifle",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("600x Lanzallamas",sWidth*0.500, sHeight*0.600, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","crusader",true) elseif getElementData(getLocalPlayer(),"team") == "sailor" then dxDrawText("Marinero",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(0,255,0,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Palo Golf",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Colt-45",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("20x Escopeta",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x M4",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("15x Granadas",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","sailor",true) elseif getElementData(getLocalPlayer(),"team") == "ss" then dxDrawText("Servicio Secreto",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(0,255,255,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Katana",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("100x Colt-45",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("400x MP5",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x Francotiradora",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("15x Granadas",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","ss",true) elseif getElementData(getLocalPlayer(),"team") == "robber" then dxDrawText("Ladron",sWidth*0.500, sHeight*0.400, sWidth*0.100, sHeight*0.997,tocolor(255,145,0,255),2.0,"default-bold","left","top",false,false,false) dxDrawText("1x Bate",sWidth*0.500, sHeight*0.450, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("400x Colt-45",sWidth*0.500, sHeight*0.480, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("30x Escopeta de Combate",sWidth*0.500, sHeight*0.510, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("300x Tec-9",sWidth*0.500, sHeight*0.540, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("150x AK-47",sWidth*0.500, sHeight*0.570, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText("600x Spray",sWidth*0.500, sHeight*0.600, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) setElementData(getLocalPlayer(),"team","robber",true) end if getElementData(getLocalPlayer(),"ciudades") == "ls" then dxDrawText("Ciudad : Los Santos(Spacebar)",sWidth*0.500, sHeight*0.650, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) elseif getElementData(getLocalPlayer(),"ciudades") == "lv" then dxDrawText("Ciudad : Las Venturas(Spacebar)",sWidth*0.500, sHeight*0.650, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) elseif getElementData(getLocalPlayer(),"ciudades") == "sf" then dxDrawText("Ciudad : San Fierro(Spacebar)",sWidth*0.500, sHeight*0.650, sWidth*0.100, sHeight*0.997,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) end end addCommandHandler("parar",function() setCameraTarget(getLocalPlayer()) end) sv robbers = createTeam("Ladrones",255,145,0) ss = createTeam("Servicio Secreto",0,255,255) sailor = createTeam("Marinos",0,255,0) crusader = createTeam("Pandilleros",255,255,0) army = createTeam("Ejercito",0,0,255) addEvent("camaras",true) addEventHandler("camaras",root,function() fadeCamera(source,true) setCameraMatrix(source,-2194.19849, -146.32339, 50.35078,-2193.91992, -135.34920, 51.16903) local dims = math.random(100,65535) setElementDimension(source,dims) setElementData(source,"spawn","lobby",true) ped = createPed(287,-2195, -142, 50.35078) setElementRotation(ped,0,0,180) local dim = getElementDimension(source) setElementDimension(ped,dim) setElementData(source,"team","army",true) triggerClientEvent("trigger",source,ped) killPed(source) end ) addEvent("spawn",true) addEventHandler("spawn",root,function() if getElementData(source,"team") == "army" and getElementData(source,"ciudad") == "ls" then setTimer(spawnPlayer,1000,1,source,2200.33301, -2633.04053, 13.54688) setPlayerTeam(source,army) elseif getElementData(source,"team") == "army" and getElementData(source,"ciudad") == "lv" then setTimer(spawnPlayer,1000,1,source,-1528.18640, 360.76633, 7.18750) setCameraTarget(source) setPlayerTeam(source,army) elseif getElementData(source,"team") == "army" and getElementData(source,"ciudad") == "sf" then setTimer(spawnPlayer,1000,1,source,284.83728, 1943.68652, 17.64063) setCameraTarget(source) setPlayerTeam(source,army) elseif getElementData(source,"team") == "crusader" then elseif getElementData(source,"team") == "sailor" then elseif getElementData(source,"team") == "ss" then elseif getElementData(source,"team") == "robber" then end end ) Image : :l 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