Jump to content

Alazam

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by Alazam

  1. Thank for reply if i get a 1.4 version of mta it is possible to play on 1.4 server with wine ?
  2. i have installed visual basic in wine but i still cant run mta sa it say error loadinc netc.dll error 126 any help ?
  3. You have sample of simple script of sqlite?
  4. I would prefer a guide for mysql but sqlite is ok
  5. Hello i want to save information in my server (money location team ext) do you know any guide that explaine how to setup sql in mta and how to use it thank
  6. And i have another question it work fine but it dont return to ligne how i can do it ?
  7. Thank i have check the wiki but havent read this line When you open a file, its file position is set to the beginning of the file. Each call to fileRead or fileWrite moves the position ahead by the amount of bytes that were read/written. This way, by using fileIsEOF you can check if you've passed through the whole file.
  8. local positionfile = fileOpen("position.txt", false) fileWrite(positionfile, "Position: x = " .. x .. " y = " .. y .. " z = " .. z .. " ") fileClose(positionfile) here is my code it work but i want it to write at the end of the existing file
  9. Hello i want to add some information to a file without delete it what i can add to my filewrite or fileopen for it ? i know that in c++ its app but i dont know in lua
  10. Thank i was thinking about other easy way but thank
  11. Hey i want to know the best way to get x y z position for spawn ext thank
  12. How work the new file from 2014 ?
  13. when i enter inthe marker i enter in the interior but i cant exit when i enter the marker for exit
  14. My full server side script teamgroove = createTeam ( "Groove", 26, 124, 15 ) teamballas = createTeam ( "Ballas", 69, 21, 132 ) teamvagos = createTeam ( "Vagos", 172, 153, 28 ) teamcops = createTeam ( "Cops", 20, 63, 208 ) groovemarker = createMarker ( 2495.3999,-1690.80005,13.8, "cylinder", 1, 57, 178, 20, 255 ) --ballasmarker = createMarker ( 2230.8000488281,-1408,23, "cylinder", 1, 125, 24, 132, 255 ) --vagosmarker = createMarker ( 1857.0999755859,-2035.8000488281,12.5, "cylinder", 1, 166, 166, 26, 255 ) --copsmarker = createMarker ( 1554.5,-1675.59998,15.2, "cylinder", 1, 35, 58, 178, 255 ) groovemarkerreturn = createMarker ( 2468.3999023438,-1698.3000488281,1012.5, "cylinder", 1, 57, 178, 20, 255 ) --ballasmarkerreturn = createMarker ( 1531.4000244141,-7.1999998092651,1000.9000244141, "cylinder", 1, 125, 24, 132, 255 ) --vagosmarkerreturn = createMarker ( 2352.6000976563,-1180.8000488281,1027, "cylinder", 1, 166, 166, 26, 255 ) --copsmarkerreturn = createMarker ( 246.39999389648,107.59999847412,1002.200012207, "cylinder", 1, 57, 178, 20, 255 ) setElementInterior(groovemarkerreturn, 2) --setElementInterior(ballasmarkerreturn, 3) --setElementInterior(vagosmarkerreturn, 5) --setElementInterior(copsmarkerreturn, 10) function groovemarkertp( hitElement, matchingDimension ) setElementInterior ( hitElement, 2, 2464.2110 , -1697.9520 , 1013.5080 ) end addEventHandler( "onMarkerHit", groovemarker, groovemarkertp ) --function ballasmarkertp( hitElement, matchingDimension ) --setElementInterior ( hitElement, 3, 1527.38 , -11.02 , 1002.10 ) --end --addEventHandler( "onMarkerHit", ballasmarker, ballasmarkertp ) --function vagosmarkertp( hitElement, matchingDimension ) --setElementInterior ( hitElement, 5, 2351.1540 , -1180.5770 , 1027.9770 ) --end --addEventHandler( "onMarkerHit", vagosmarker, vagosmarkertp ) --function copsmarkertp( hitElement, matchingDimension ) --setElementInterior ( hitElement, 10, 246.4410 , 112.1640 , 1003.2190 ) --nd --addEventHandler( "onMarkerHit", copsmarker, copsmarkertp ) function groovemarkerreturntp( hitElement, matchingDimension ) setElementInterior ( hitElement, 0, 2495.3999,-1690.80005,13.8 ) end addEventHandler( "onMarkerHit", groovemarkerreturn, groovemarkerreturntp ) --function ballasmarkerreturntp( hitElement, matchingDimension ) -- setElementInterior(hitElement, 0, 2230.8000488281, -1408, 23) --end --addEventHandler( "onMarkerHit", ballasmarkerreturn, ballasmarkerreturntp) --function vagosmarkerreturntp( hitElement, matchingDimension ) -- setElementInterior(hitElement, 0, 1857.0999755859, -2035.8000488281, 12.5) --end --addEventHandler( "onMarkerHit", vagosmarkerreturn, vagosmarkerreturntp ) --function copsmarkerreturntp( hitElement, matchingDimension ) -- setElementInterior(hitElement, 0, 1554.5, -1675.59998, 15.2) --end function groovespawn() spawnPlayer(client, 2495, -1686, 13) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("You are a groove", client) giveWeapon ( source, 1, 1 ) giveWeapon ( source, 28, 500 ) giveWeapon ( source, 25, 500 ) setElementModel( source, 106 ) setPlayerTeam( client, teamgroove) end function ballasspawn() spawnPlayer(client, 2247, -1456, 24) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("You are a ballas", client) giveWeapon ( source, 1, 1 ) giveWeapon ( source, 32, 500 ) giveWeapon ( source, 30, 500 ) setElementModel( source, 104 ) setPlayerTeam( client, teamballas) end function vagosspawn() spawnPlayer(client, 1883, -2001, 13) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("You are a vagos", client) giveWeapon ( source, 1, 1 ) giveWeapon ( source, 29, 500 ) giveWeapon ( source, 33, 500 ) setElementModel( source, 109 ) setPlayerTeam( client, teamvagos) end function copsspawn() spawnPlayer(client, 1575, -1634, 13) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("You are a cops", client) giveWeapon ( source, 31, 500 ) giveWeapon ( source, 22, 500 ) giveWeapon ( source, 17, 3 ) setElementModel( source, 267 ) setPlayerTeam( client, teamcops) end addEvent("grooveevent",true) addEvent("ballasevent",true) addEvent("vagosevent",true) addEvent("copsevent",true) addEventHandler("grooveevent",root,groovespawn) addEventHandler("ballasevent",root,ballasspawn) addEventHandler("vagosevent",root,vagosspawn) addEventHandler("copsevent",root,copsspawn) and meta <meta> <info author="Alazam" type="gamemode" name="Gangdm" description="Gang death match" /> <script src="client.lua" type="client" /> <script src="server.lua" type="server" /> <include resource="gangmap" /> <include resource="reload" /> <include resource="superman" /> <include resource="realdriveby" /> <include resource="headshot" /> </meta>
  15. yes off course its in my main script file
  16. I have no error and yes i have restart
  17. I understand but same when i have add your code its not working only the pickup appear but when i go in iam not teleported except for groove street
  18. thank but the script is 100 % me i dont finish the script because i have think that because the teleport dont work its because of another problem
  19. Hello i create marker for when a player go in the marker they are teleported to a interor here the script groovemarker = createMarker ( 2495.3999,-1690.80005,13.8, "cylinder", 1, 57, 178, 20, 255 ) ballasmarker = createMarker ( 2230.8000488281,-1408,23, "cylinder", 1, 125, 24, 132, 255 ) vagosmarker = createMarker ( 1857.0999755859,-2035.8000488281,12.5, "cylinder", 1, 166, 166, 26, 255 ) copsmarker = createMarker ( 1554.5,-1675.59998,15.2, "cylinder", 1, 35, 58, 178, 255 ) groovemarkerreturn = createMarker ( 2468.3999023438,-1698.3000488281,1012.5, "cylinder", 1, 57, 178, 20, 255 ) ballasmarkerreturn = createMarker ( 1531.4000244141,-7.1999998092651,1000.9000244141, "cylinder", 1, 125, 24, 132, 255 ) vagosmarkerreturn = createMarker ( 2352.6000976563,-1180.8000488281,1027, "cylinder", 1, 166, 166, 26, 255 ) copsmarkerreturn = createMarker ( 246.39999389648,107.59999847412,1002.200012207, "cylinder", 1, 57, 178, 20, 255 ) setElementInterior(groovemarkerreturn, 2) setElementInterior(ballasmarkerreturn, 3) setElementInterior(vagosmarkerreturn, 5) setElementInterior(copsmarkerreturn, 10) function groovemarkertp( hitElement, matchingDimension ) setElementInterior ( hitElement, 2, 2464.2110 , -1697.9520 , 1013.5080 ) end addEventHandler( "onMarkerHit", groovemarker, groovemarkertp ) function ballasmarkertp( hitElement, matchingDimension ) setElementInterior ( hitElement, 3, 1527.38 , -11.02 , 1002.10 ) end addEventHandler( "onMarkerHit", ballasmarker, ballasmarkertp ) function vagosmarkertp( hitElement, matchingDimension ) setElementInterior ( hitElement, 5, 2351.1540 , -1180.5770 , 1027.9770 ) end addEventHandler( "onMarkerHit", vagosmarker, vagosmarkertp ) function copsmarkertp( hitElement, matchingDimension ) setElementInterior ( hitElement, 10, 246.4410 , 112.1640 , 1003.2190 ) end addEventHandler( "onMarkerHit", copsmarker, copsmarkertp ) function groovemarkerreturntp( hitElement, matchingDimension ) setElementInterior ( hitElement, 0, 2495.2705 , -1688.55468 , 13.879 ) end addEventHandler( "onMarkerHit", groovemarkerreturn, groovemarkerreturntp ) Only the groove teleport work but i cant come to normal world after i have enter please help thank
  20. thank i going to try that next time
×
×
  • Create New...