Jump to content

nick1995

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by nick1995

  1. Thanks, that is different than php. Php is != ... Thanks anyway
  2. It is a admintag script I want that every admin get [ADMIN] for his name except Damian. This is the script: function chatbox(text, msgtype) local root = getRootElement() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("Nick en Mitchel")) then cancelEvent(true) outputChatBox("#FF0000[Owner] #FFFFFF" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [Owner] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) and name =! "damian" then cancelEvent(true) outputChatBox("#855863[ADMIN] #FFFFFF" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then cancelEvent(true) outputChatBox("#855863[sMOD] #FFFFFF" .. name ..":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [sMOD] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then cancelEvent(true) outputChatBox("#855863[MOD] #FFFFFF" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [MOD] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then cancelEvent(true) outputChatBox(name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: " .. name .. ": " .. text) end elseif (msgtype == 2) then end end addEventHandler("onPlayerChat", root, chatbox) function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end
  3. That means, "is not" Or... is that not right?
  4. Hey, What is wrong with this: elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) and name =! "damian" then Its about: and name =! "damian"
  5. I have already a scripter. Thanks all!
  6. And if you read my topic... I am searching for weapon save if you died....
  7. "Simbad de zeeman" is offline, this is a alternative RPG server, and we are allowed to make it. Anyway, it was a example c:
  8. I know, but i cant script so good. Thats the reason for a paid scripter, and i think there are enough persons that would make this...
  9. Hey I am looking for a paid scripter... Please send me a PM with the price you want for this, please say the price for each subject. Example: Main tab €2 Player tab €3 Total price etc. I want a gui (the player menu) that opens with M, like this: Main tab: Name Money Bank money Logout button Player tab: The players that are online You can select a player, see his handmoney, and send a warp request. The other player have to accept the warp (Can NAME warp to you? Yes - No) Taxi tab: Buttons to warp points, we can edit the buttons... Example button: Spawn - it warps you to the spawn (X Y Z coordinates) Maybe a countdown from 5 seconds, before you get spawn... Animations tab: Buttons where you can do animations like dance. Group tab: Clan system You can make your own clan and can invite people You can't kill your clan members Vehicles tab: (See the picture for example) You can buy vehicles and can spawn it with this menu. Respawn, that fix your vehicle Sell, you can sell your vehicle back, and get your money.
  10. Thanks, but i have try that already... It doesn't save if you died...
  11. nick1995

    Weapon save

    Is there a resource that save your weapons if you died?
  12. Right... You think i dont try something?
  13. Now i have: [2012-06-09 20:36:20] Starting night_club [2012-06-09 20:36:20] SCRIPT ERROR: night_club\gate.lua:7: '(' expected near 'moveGate' [2012-06-09 20:36:20] WARNING: Loading script failed: night_club\gate.lua:7: '(' expected near 'moveGate' [2012-06-09 20:36:20] night_club restarted successfully
  14. Thanks, i will try that! c:
  15. I think this is the best option: local gate = createObject ( 975, 1438.1025390625, -2879.2116699219, 2.5887410640717, 0, 0, 180) local marker = createMarker(1438.1025390625, -2874.20654, 2.5887410640717, "cylinder", 6, 255, 255, 255, 0) setMarkerSize ( marker, 11.5 ) function moveGate(hitPlayer, matchingDimension) if hasObjectPermissionTo(hitPlayer, "function.kickPlayer") then moveObject ( gate, 2200, 1429.4974365234, -2879.0065917969, 2.5750021934509) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject ( gate, 2450, 1438.1025390625, -2879.2116699219, 2.5887410640717) end addEventHandler("onMarkerLeave", marker, moveBack) s1 = createMarker( -1529, 490, 7, "cylinder", 13.5, 255, 255, 255, 0) s2 = createBlip( 1438.7745361328, -2938.0595703125, 2.8496370315552,62)
  16. I know, but i want that the marker a little bit away from the gate (see my script) so the gate is opening... But if you leave the marker is closing
  17. I have now this, thanks to Stuvi: local gate = createObject ( 975, 1438.1025390625, -2879.2116699219, 2.5887410640717, 0, 0, 180) local marker = createMarker(1438.1025390625, -2865.44531, 2.5887410640717, "cylinder", 6, 255, 255, 255, 0) local marker2 = createMarker(1438.1025390625, -2886.79980, 2.5887410640717, "cylinder", 6, 255, 255, 255, 0) function moveGate(hitPlayer, matchingDimension) if hasObjectPermissionTo(hitPlayer, "function.kickPlayer") then moveObject ( gate, 2200, 1429.4974365234, -2879.0065917969, 2.5750021934509) end end addEventHandler("onMarkerHit", marker, moveGate) addEventHandler("onMarkerHit", marker2, moveGate) function moveBack() moveObject ( gate, 2450, 1438.1025390625, -2879.2116699219, 2.5887410640717) -- move back when the player leaves the marck end addEventHandler("onMarkerLeave", marker, moveBack) addEventHandler("onMarkerLeave", marker2, moveBack) s1 = createMarker( -1529, 490, 7, "cylinder", 13.5, 255, 255, 255, 0) s2 = createBlip( 1438.7745361328, -2938.0595703125, 2.8496370315552,62) But the marker is little bit away from the gate... But now is the problem, the gate closed to early... So i can't ride thougt the gate, because he is already closing :')
  18. local gate = createObject ( 975, 1438.1025390625, -2879.2116699219, 2.5887410640717, 0, 0, 180) local marker = createMarker(1438.1025390625, -2879.2116699219, 2.5887410640717, "cylinder", 6, 255, 255, 255, 0) function moveGate(hitPlayer, matchingDimension) if hasObjectPermissionTo(hitPlayer, "function.kickPlayer") then moveObject ( gate, 2200, 1429.4974365234, -2879.0065917969, 2.5750021934509) setTimer(moveBack, 2000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject ( gate, 2450, 1438.1025390625, -2879.2116699219, 2.5887410640717) end s1 = createMarker( -1529, 490, 7, "cylinder", 13.5, 255, 255, 255, 0) s2 = createBlip( 1438.7745361328, -2938.0595703125, 2.8496370315552,62) Problem, if he open, he closed after 0.5 seconds... (I had look at a other script, and so I edit c:) The problem is... I can edit the timer, but I want that he close if the player is away... EDIT: I have now this: local gate = createObject ( 975, 1438.1025390625, -2879.2116699219, 2.5887410640717, 0, 0, 180) local marker = createMarker(1438.1025390625, -2865.44531, 2.5887410640717, "cylinder", 6, 255, 255, 255, 0) function moveGate(hitPlayer, matchingDimension) if hasObjectPermissionTo(hitPlayer, "function.kickPlayer") then moveObject ( gate, 2200, 1429.4974365234, -2879.0065917969, 2.5750021934509) setTimer(moveBack, 4000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject ( gate, 2450, 1438.1025390625, -2879.2116699219, 2.5887410640717) end s1 = createMarker( -1529, 490, 7, "cylinder", 13.5, 255, 255, 255, 0) s2 = createBlip( 1438.7745361328, -2938.0595703125, 2.8496370315552,62) But the second problem... I can't go out anymore, because there isn't a marker ...
  19. I was trying what Darklink says, but i can't... That was the reason why i ask of somebody wants to do it, so I can learn for the future... i will try, but its hard, but so far, it will not work...
  20. Hey! I have looked in the wiki, but I don't know what to do... I am a beginning scripter, and I am editting scripts... I have a question, maybe someone can do it for me... This is one gate: function onstartup () gate = createObject ( 975, 1438.1025390625, -2879.2116699219, 2.5887410640717, 0, 0, 180) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( gate, 2200, 1429.4974365234, -2879.0065917969, 2.5750021934509) end addCommandHandler("1", move) function move () moveObject ( gate, 2450, 1438.1025390625, -2879.2116699219, 2.5887410640717) end addCommandHandler("2", move) s1 = createMarker( -1529, 490, 7, "cylinder", 13.5, 255, 255, 255, 0) s2 = createBlip( 1438.7745361328, -2938.0595703125, 2.8496370315552,62) Now i want that the gate automatic open if there is a player, and automatic close if the player is leaving... Now its open by /1 And closing by /2 Maybe someone can do this, and explain what he have done so I can do it the next time by myself... Regards, Nick
  21. Thanks its working! I am learning so much now
  22. Hi! I have downloaded a resource, and this is the LUA script: function Window ( ) if ( guiGetVisible ( myWindow ) == true ) then guiSetVisible ( myWindow, false ) showCursor ( false ) else guiSetVisible ( myWindow, true ) showCursor ( true ) end end myWindow = guiCreateWindow ( 0.16, 0.0, .7, .7, "Taxi locations.", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local Teleports = guiCreateTab( "Taxi to:", tabPanel ) --GUI Buttons LSAirport = guiCreateButton( 0.03, 0.01, 0.18, 0.12, "LS airport", true, Teleports ) guiSetFont ( LSAirport, "default-bold-small" ) LVAirport = guiCreateButton( 0.03, 0.13, 0.18, 0.12, "LV airport", true, Teleports ) guiSetFont ( LVAirport, "default-bold-small" ) AbandedAirstrip = guiCreateButton( 0.03, 0.25, 0.18, 0.12, "Desert Airstrip", true, Teleports ) guiSetFont ( AbandedAirstrip, "default-bold-small" ) SFAirport = guiCreateButton( 0.03, 0.37, 0.18, 0.12, "SF airport", true, Teleports ) guiSetFont ( SFAirport, "default-bold-small" ) MountChiliad = guiCreateButton( 0.03, 0.49, 0.18, 0.12, "Mount Chiliad", true, Teleports ) guiSetFont ( MountChiliad, "default-bold-small" ) Spawn = guiCreateButton( 0.03, 0.61, 0.18, 0.12, "Spawn", true, Teleports ) guiSetFont ( Spawn, "default-bold-small" ) Ottos = guiCreateButton( 0.4, 0.01, 0.18, 0.12, "Otto's Carros", true, Teleports ) guiSetFont ( Ottos, "default-bold-small" ) Train = guiCreateButton( 0.4, 0.13, 0.18, 0.12, "Train station", true, Teleports ) guiSetFont ( Train, "default-bold-small" ) BigEar = guiCreateButton( 0.4, 0.25, 0.18, 0.12, "Big Ear", true, Teleports ) guiSetFont ( BigEar, "default-bold-small" ) BlueBerry = guiCreateButton( 0.4, 0.37, 0.18, 0.12, "BlueBerry Acres", true, Teleports ) guiSetFont ( BlueBerry, "default-bold-small" ) Heli = guiCreateButton( 0.4, 0.49, 0.18, 0.12, "Heli Pad", true, Teleports ) guiSetFont ( Heli, "default-bold-small" ) Grove = guiCreateButton( 0.4, 0.61, 0.18, 0.12, "Grove Street", true, Teleports ) guiSetFont ( Grove, "default-bold-small" ) Dam = guiCreateButton( 0.77, 0.01, 0.18, 0.12, "Sherman Dam", true, Teleports ) guiSetFont ( Dam, "default-bold-small" ) BackBeyond = guiCreateButton( 0.77, 0.13, 0.18, 0.12, "Back O Beyond", true, Teleports ) guiSetFont ( BackBeyond, "default-bold-small" ) Quarry = guiCreateButton( 0.77, 0.25, 0.18, 0.12, "Quarry", true, Teleports ) guiSetFont ( Quarry, "default-bold-small" ) Bayside = guiCreateButton( 0.77, 0.37, 0.18, 0.12, "Bayside", true, Teleports ) guiSetFont ( Bayside, "default-bold-small" ) Pecker = guiCreateButton( 0.77, 0.49, 0.18, 0.12, "Las Payasadas", true, Teleports ) guiSetFont ( Pecker, "default-bold-small" ) Bridge = guiCreateButton( 0.77, 0.61, 0.18, 0.12, "Bridge Facts", true, Teleports ) guiSetFont ( Bridge, "default-bold-small" ) Close = guiCreateButton( -0.08, 0.94, 1.1, 0.063, "Close 'F4'", true, Teleports ) guiSetFont ( Close, "default-bold-small" ) bindKey ( "F4", "down", Window ) guiSetAlpha ( myWindow, 1 ) guiWindowSetSizable ( myWindow, false ) Info= guiCreateLabel(0.61,0.9333,0.6025,0.1267,"Press F4 for a taxi",true) guiSetFont ( Info, "clear-normal" ) guiSetFont ( Info, "sa-header" ) guiLabelSetColor ( Info, 000, 000, 000 ) guiSetAlpha ( Info, 0.2222 ) --Create Labels local One = guiCreateLabel(0.09,0.78,0.94,0.2,"Click - Close 'F4'- To close.",true,Teleports) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiSetFont ( One, "sa-header" ) --Label Color function changeLabelColor ( ) guiLabelSetColor ( One, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( changeLabelColor, 1000, 0 ) --Close addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Close) then guiSetVisible( myWindow, false ) showCursor( false ) end end ) --Teleports addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == MountChiliad) then local player = getLocalPlayer() setElementPosition (player , -2325.7409667969, -1627.6766357422, 483.1091003418 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == LSAirport) then local player = getLocalPlayer() setElementPosition (player , 1993.8118896484, -2446.2619628906, 12.951565742493 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == LVAirport) then local player = getLocalPlayer() setElementPosition (player , 1523.9138183594, 1527.1204833984, 10.2602405548 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == AbandedAirstrip) then local player = getLocalPlayer() setElementPosition (player , 405.55480957031, 2537.8181152344, 15.9504671096 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == SFAirport) then local player = getLocalPlayer() setElementPosition (player , -1223.4442138672, 43.506820678711, 13.541401863098 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Spawn) then local player = getLocalPlayer() setElementPosition (player , 584.22082519531, -1991.6666259766, 1.4216117858887 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Ottos) then local player = getLocalPlayer() setElementPosition (player , -1643.1949462891, 1212.7462158203, 6.5843458175659 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Train) then local player = getLocalPlayer() setElementPosition (player , 1434.11389, 2654.20752, 11.39261 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BigEar) then local player = getLocalPlayer() setElementPosition (player , -294.39447021484, 1538.9415283203, 74.965629577637 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BlueBerry) then local player = getLocalPlayer() setElementPosition (player , -3.3661103248596, 36.78341293335, 2.5212655067444 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Heli) then local player = getLocalPlayer() setElementPosition (player , 1535.7916259766, -1353.4775390625, 328.86157226563 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Grove) then local player = getLocalPlayer() setElementPosition (player , 2495.3193359375, -1690.1716308594, 14.765625 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Dam) then local player = getLocalPlayer() setElementPosition (player , -887.02734375, 2000.9217529297, 60.654315948486 ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BackBeyond) then local player = getLocalPlayer() setElementPosition (player , -938.93298339844, -2346.8010253906, 59.003288269043 ) end
  23. Thanks, i will look at that
  24. Is there a possibility to change the siren of the emergency vehicles in MTA? In gta SA you can do this.... Greetz
×
×
  • Create New...