RekZ Posted June 25, 2012 Posted June 25, 2012 La zona se crea y todo eso... pero cuando entra alguien no lo mata safecol = createColCuboid ( 3386.82764, -754.43237, 27.01133, 255, 255, 255 ) -- sintax: posX, posY, posZ, sizeX, sizeY,sizeZ (este genera un cuadro invisible q no deja que los zombien ni lo que no sean de los grupos acl enten) safeZoneRadar = createRadarArea ( 3386.82764, -754.43237, 280, 320, 66, 199, 255 ) -- sintax: posX, posY, sizeX, sizeY, colorR, colorG, colorB, colorAlfa (este forma un cuadro en el radar y en el mapa) setElementData (safeZoneRadar, "zombieProof", true) safecol = createColSphere( -2307.53149, 2224.94287, -0.55000, 255, 255, 255 ) function enterZone(hitPlayer,thePlayer) local accountname = getAccountName (getPlayerAccount(hitPlayer,thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "USS" ) ) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) -- tiene lo derechos de acl al ENTRAR outputChatBox("Bienevnido a La Base [u.S.S].", hitPlayer, 0, 100, 255) else -- no tiene los derechos de acl al ENTRAR outputChatBox("Zona Restringida , Solo Personal Autorizado.", hitPlayer, 255, 0, 0) killPed (hitPlayer) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) local accountname = getAccountName (getPlayerAccount(hitPlayer,thePlayer)) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) -- tiene los derechos de acl al SALIR outputChatBox("Haz salido de la base.", hitPlayer, 255, 0, 0) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "USS" ) ) then -- no tiene los derechos de acl al SALIR outputChatBox("Acceso denegado.", hitPlayer, 255, 0, 0) killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) Admin and Owner of the Pro Chile Community :3
NodZen Posted June 25, 2012 Posted June 25, 2012 Tu quieres hacer digamos una "base" que solo los USS puedan entrar? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
RekZ Posted June 25, 2012 Author Posted June 25, 2012 si , y ke muera el ke no este en el acl Admin and Owner of the Pro Chile Community :3
NodZen Posted June 25, 2012 Posted June 25, 2012 si , y ke muera el ke no este en el acl Los nicknames de los players son USS o U.S.S? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
RekZ Posted June 25, 2012 Author Posted June 25, 2012 USS ? ._. eso tiene algo ke ver ? Admin and Owner of the Pro Chile Community :3
Recommended Posts