RekZ Posted June 22, 2012 Posted June 22, 2012 quisiera saver como hacer un resource para los autos por clanes en ACL , tengo un amigo que lo hace con un scrip y xml pero logicamente no se como ... Si pudieran decirme como hacerlo o que usar... Gracias de antemano
Alexs Posted June 22, 2012 Posted June 22, 2012 addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 22 do vehicles [ getElementByID ( "ALFA".. index ) ] = true end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then return end if ( vehicles [ source ] ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "ALFA" ) then outputChatBox ( "Este vehiculo esta restringido a los miembros del clan ALFA", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end ) Yo lo hago asi, pero para Teams
RekZ Posted June 22, 2012 Author Posted June 22, 2012 Yo lo quiero hacer por ACL pero nisikiera se por donde empezar
BorderLine Posted June 22, 2012 Posted June 22, 2012 https://wiki.multitheftauto.com/wiki/Ser ... _functions todo por serverside, y como menciona Alex_Steel tambien usar eso
Recommended Posts