Xperia Posted January 23, 2013 Share Posted January 23, 2013 Pues tengo eso, el team creado en server-side, y al pasar por la linea aunque seas Army, pues mueres: function laser(thePlayer) dxDrawLine3D ( 226.80000305176, 1874, 13.39999961853, 226.80000305176, 1870.8000488281, 13.39999961853, tocolor(250,0,0,150) ) detector = processLineOfSight( 226.80000305176, 1874, 13.39999961853, 226.80000305176, 1870.8000488281, 13.39999961853, false, false, true) if getPlayerTeam(thePlayer)~=getTeamFromName("Army") then if detector then createExplosion( 226.80000305176, 1874, 13.39999961853, 6 ) end end end addEventHandler("onClientRender",getRootElement(),laser) Link to comment
Alexs Posted January 23, 2013 Share Posted January 23, 2013 onClientRender no tiene parámetros pero tu usas uno, es decir, no tienes jugador para conseguir un team. Link to comment
MTA Team 0xCiBeR Posted January 24, 2013 MTA Team Share Posted January 24, 2013 y una simple suferencia, en vez de usar el createExplosion mejor usa killPed...Es lo que yo haria Link to comment
Alexs Posted January 24, 2013 Share Posted January 24, 2013 killPed es server side y es mas divertida la explosión. Link to comment
Xperia Posted January 24, 2013 Author Share Posted January 24, 2013 Exacto. PD: Luego lo testeo. Link to comment
Recommended Posts