Matt Posted March 10, 2013 Share Posted March 10, 2013 Me gustaria hacer cmd para un base de un clan llamado LGM solo los de ese team o gang puedan utilizarlo ejemplo /lgmentry este cmd solo sea utilizable para los que pertenecen al team o gang y que ponga un mensaje asi *[server]No Perteneces A Este Clan por favor como seria. ------------------------------------------------Script----------------------------------------------------- function createTheGate () myGate1 = createObject ( 10828, 836.5, -2069.6999511719, 23, 0, 359.99993896484, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( myGate1, 2500, 836.5, -2069.6999511719, 8 ) end addCommandHandler("lgmentry",openMyGate) function movingMyGateBack () moveObject ( myGate1, 2500, 836.5, -2069.6999511719, 23 ) end addCommandHandler("lgmentry",movingMyGateBack) Link to comment
Sasu Posted March 10, 2013 Share Posted March 10, 2013 Usas el gang system de castillo. Si es asi prueba: ------------------------------------------------Script----------------------------------------------------- function createTheGate () myGate1 = createObject ( 10828, 836.5, -2069.6999511719, 23, 0, 359.99993896484, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate (source) if ( getElementData(source, "gang", true) == "LGM") then moveObject ( myGate1, 2500, 836.5, -2069.6999511719, 8 ) else outputChatBox("#FF0000[server]#00FF00No Perteneces A Este Clan.", source, 255, 255, 255, true) end end addCommandHandler("lgmentry",openMyGate) function movingMyGateBack () if ( getElementData(source, "gang", true) == "LGM") then moveObject ( myGate1, 2500, 836.5, -2069.6999511719, 23 ) else outputChatBox("#FF0000[server]#00FF00No Perteneces A Este Clan.", source, 255, 255, 255, true) end end addCommandHandler("lgmentry2",movingMyGateBack) Link to comment
FraN-724 Posted March 10, 2013 Share Posted March 10, 2013 Y si lo quieres por team : ------------------------------------------------Script----------------------------------------------------- function createTheGate () myGate1 = createObject ( 10828, 836.5, -2069.6999511719, 23, 0, 359.99993896484, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate (source) if ( getPlayerTeam(thePlayer) and getTeamName(getPlayerTeam(thePlayer)) ~= "LGM" ) then moveObject ( myGate1, 2500, 836.5, -2069.6999511719, 8 ) else outputChatBox("#FF0000[server]#00FF00No Perteneces A Este Clan.", source, 255, 255, 255, true) end end addCommandHandler("lgmentry",openMyGate) function movingMyGateBack () if ( getPlayerTeam(thePlayer) and getTeamName(getPlayerTeam(thePlayer)) ~= "LGM" ) then moveObject ( myGate1, 2500, 836.5, -2069.6999511719, 23 ) else outputChatBox("#FF0000[server]#00FF00No Perteneces A Este Clan.", source, 255, 255, 255, true) end end addCommandHandler("lgmentry2",movingMyGateBack) Link to comment
Matt Posted March 10, 2013 Author Share Posted March 10, 2013 Gracias a los dos me sirvio Link to comment
Recommended Posts