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 Admin and Owner of the Pro Chile Community :3
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 Developer @ MYVAL
RekZ Posted June 22, 2012 Author Posted June 22, 2012 Yo lo quiero hacer por ACL pero nisikiera se por donde empezar Admin and Owner of the Pro Chile Community :3
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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Recommended Posts