Jump to content

Citizen

Moderators
  • Posts

    1,803
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Citizen

  1. Citizen

    admin panel

    You have to be in the group "Admin" in the acl.xml of the server: Open your acl.xml and add your account like this ( replace yourNickName ): <object name="user.yourNickName" />
  2. Ok so go in your freeroam resource for weapons, you have to open weapons.xml and delete the lines of the weapons which you want to delete, save the xml and restart the server. for vehicles, you have to open vehicles.xml and delete the lines of the vehicles which you want to delete, save the xml and restart the server. Exemple: I want to restricted the minigun, so I open the weapons.xml and I looking for the minigun and I find this: <group name="Heavy weapons"> <weapon id="37" name="Flame thrower" /> <weapon id="36" name="Heat seeking RPG" /> <weapon id="38" name="Minigun" /> <weapon id="35" name="Rocket launcher" /> </group> So I delete the line of the minigun like this: <group name="Heavy weapons"> <weapon id="37" name="Flame thrower" /> <weapon id="36" name="Heat seeking RPG" /> <weapon id="35" name="Rocket launcher" /> </group> Enjoy !
  3. All is possible in MTA but you have to script it ... You have to found the position where the car have to be spawned for each house and "attach" this information to the house element ( by a setElementData( yourHouse, "SpawnX, yourXPosition ), setElementData( yourHouse, "SpawnY, yourYPosition ), setElementData( yourHouse, "SpawnZ, yourZPosition ) ) Then when a player buy a car, you have to get his house and get the X,Y,Z position with getElementData Then create his car to those coordinates. It's not very easy for a novice to make this system
  4. Oh I found the problem I think : In your loop, the client found a second pickup which changes the vehicle to an hunter. So you have to destroy the pickup of the previous map ( If this pickup was not destroyed ) Or destroy all pickups which changes the vehicle to an hunter before each new maps.
  5. How can you see that the text is duplicate ? Could you show us a little screen please ?
  6. And there is no error ? Try to put some outputChatBox to found the problem. And if you replace getResourceConfig by xmlLoadFile ?
  7. Citizen

    Algorithm

    It's very simple: you have to make: setElementData( thePlayer, "Level", theLevel ) setElementData( thePlayer, "Kills", theLevel ) setElementData( thePlayer, "xp", theXP ) Then in onPedWasted, you increase the Kills and xp of the attacker and call a function like levelUp( thePlayer ): function levelUp( thePlayer ) if getElementType( thePlayer ) == "player" then -- if the attacker is a player local level = getElementData( thePlayer, "Level" ) local xp = getElementData( thePlayer, "xp" ) if xp >= 500 then -- if he kills 500 peds or more ( if there is a bug ^^) setElementData( thePlayer "xp", 0 ) -- go back to 0 setElementData( thePlayer, "Level", level+1 )-- We increase his level outputChatBox("You are now level "..getElementData( thePlayer, "Level" ).." !", thePlayer, 0, 180, 0 ) end end end Try to make your system now
  8. Lol, it's not the 1st guy who make this ^^
  9. No problem but I'm a little bit tired
  10. He wanted to say: "Yesterday night, Citizen helped me to fix all bugs and to transform the absolute position to a relativ postition (we make 2 converters one for the labels and one for the dxDrawRectangle ). And we have finished this script at 4:30 AM. But now how I can save the datas ?" It's that you wanted to say ? Isn't it ?
  11. Citizen

    wht this?

    Every songs or scripts in a resource need to be loaded by the meta.xml like this: <file src="yourSong.mp3" />
  12. Do you see my PMs bamby12 ???
  13. Citizen

    Respawn

    LOL my bad sorry
  14. It works because you deleted the space ? or you found another solution ?
  15. Personaly I don't need a code for a vehicle Try to make it yourself then I can help you. I help for free but I don't work for free
  16. Citizen

    Respawn

    I said that I edited my first post because I made an error so in the table I get the valid and the invalid skins
  17. Really ? Killerbee_x there is a space in your resource name ?
  18. Citizen

    Respawn

    /!\ I edited my post ( the code and the valid skin table ) /!\
  19. It's just because there is a space in your resource name How to fix it ? => delete the space
  20. Drives ? lol not walk ? Yes you can make this system for drivers too so yes you have understand
  21. Yeah that takes a very long time and 428 ( It's the real number of marker positions that I have ) doesn't cover entire LS You need: createPed setElementID createMarker setPedAnimation(pedwalk, "ped", "WALK_civi", -1, 1, 1, 0) -- Anim Walk onMarkerHit setElementRotation or setPedRotation a lot of positions ^^ and this useful function ( it set the rotation of the specified ped ): function pedIARot(thePed, x, y, z) x = tonumber(x) y = tonumber(y) local px, py, pz = getElementPosition( thePed ) X = math.abs( x - px ) Y = math.abs( y - py ) faceM = math.deg( math.atan2( Y , X ) ) if ( x >= px ) and ( y > py ) then -- north-east faceM = 90 - faceM elseif ( x <= px ) and ( y > py ) then -- north-west faceM = 270 + faceM elseif ( x >= px ) and ( y <= py ) then -- south-east faceM = 90 + faceM elseif ( x < px ) and ( y <= py ) then -- south-west faceM = 270 - faceM end setPedRotation(thePed,(360-faceM)) end I can help you for your own system
  22. No he never follows the way himself, YOU have to tell him other coordinates before if you want that your ped stay on the road. You want to make this script in server-side or client-side ? In server-side, all players can see this ped if you want or only one In client-side, only 1 player can see this ped
×
×
  • Create New...