Jump to content

Ka3ax

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by Ka3ax

  1. You need this on the serverside function spawnBot (source) local x,y,z = getElementPosition (source) local rot= 90 local skin=13 local interior=0 local dimension= 0 local team=false -- you need to modifacate this with "your_Team" local weapon=26 local mode= "hunting" -- and modificate this to "following" local modesubject=source local slothbot = exports.slothbot slothbot:spawnBot(x, y+6, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) slothbot:spawnBot(x, y+7, z, rot, skin+7, interior, dimension, team, weapon, mode, modesubject) slothbot:spawnBot(x, y+8, z, rot, skin+23, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler("spawnbot", spawnBot) Then You can tipe /createbot and 3 bots will be created. But in this code, the will attak you. So you need to get the bot in the same team like you The misstake is only, if bot shoot at bot. Then the are going to start a fight. You know need that this bots are not so AI like humans
  2. https://forum.multitheftauto.com/viewtop ... 08&t=25488
  3. sorry, the same story: concatenate a nil value. May the error is in the line 2? its is right how I write the bot in the var? I'm new at LUA
  4. Hello I just try to get a bot in to a variabel because I like to contoll the bot in the futher. So I try this in this way: local slothbot = exports.slothbot local bot1 = slothbot:spawnBot(x, y+6, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) outputChatBox("bot1: ".. slothbot:getBotMode(bot1)) The Bot is spawning, but I see nothing in the chat box. The console says this: [21:15:37] ERROR: ressource_test/server.lua:16: attempt to concatenate a nil value (line 16, is line 4 in this case. The out put) what is the Problem? What I do wrong?
  5. Ka3ax

    Carmods

    versuch folgendes: geh in den Ordner, wo bei dir MTA installiert ist und navigere dich zum "\mods\deathmatch\resources" lösch da mal alle Dateien und Ordner Dann versuch wieder auf den Server zu kommen
  6. I mean where store the client the files, that was downloaded from the server.
  7. ofcourse are 47Kb not big. But with all modifications I saw that new clients have already about 500Kb to download. With some more modifications are there some Mb and one year later are there hundret of Mbs So I like to do that already to day then one year later. Where I can see the files, that the client download?
  8. race_client.lua is 47Kb big. So the user have to download it becouse the Server has a modified file and MTA-Client does not have it, right?! Can I make my own file like "my_mods.lua" and overwrite only some lines or funcions of race_client.lua. So the client have to download only few Kb.
  9. Ah cool, freut mich. Es gibt also doch eine function die es in String umwandelt.
  10. oh yeah, right! See it now. It is in the Line 22-25 in the race_client.lua Looks good, like I wanted: http://i46.tinypic.com/izvqcl.jpg THX btw. what does the client download, when I get on a server? It downloads all client-sided scripts, fonts and images - basically everything related to the client-side stuff. You can find them from here: MTA San Andreas 1.3\mods\deathmatch\resources All different Things between Server and Client? Because the Downloads file is only some Kb huge. I ask, because it is maby better to write an New resource that is only 2-3Kb Big then the Race_client.lua with his 20Kb. Can I overwrite only some functions of the race_client.lau in a separate file?
  11. oh yeah, right! See it now. It is in the Line 22-25 in the race_client.lua Looks good, like I wanted: http://i46.tinypic.com/izvqcl.jpg THX btw. what does the client download, when I get on a server?
  12. eine "Gegenleistung" *böses Grinsen* an welche Art von "Gegenleistung" hast du den gedacht
  13. ich bin neu in MTA, aber grundsätzlich ist es so das Integer (die Zahlen) ohne die Führende Null gespeichert werden. Ich denke das liegt an der Schonung der Ressourcen. ...aber zurück zu deinem Problem. Du musst eigentlich nur deine Uhrzeit im String zwischenspeichern und wenn die Uhr- oder Minuten Zeit unter 10 fällt, eine null dran hängen. String sieht die Uhrzeit dann als Zeichenkette an und schmeißt die null nicht weg. Soviel zur Theorie, meine Kenntnisse in der LUA sind aber zu schlecht um dir jetzt einen fertigen Code zu geben. Du musst aber dieses "tonumber" weglassen und die Variable "zeit" als String deklarieren. OOOODER, wenn man in LUA keine Variablen deklaration machen kann, dann gibst du in der If-Verzweigung bevor die eigentlich zahl ausgegeben wird, eine 0 aus. So sieht der Benutzer es als eine Zahl obwohl die Zahl eigentlich aus zwei besteht if ( zeit < 10 ) then outputChatBox( "0"..zeit ) end
  14. Hallo, seit dem ich das MTA gespielt habe, fand ich es nur HAMMMAAA. Ich mein das GTA war schon geil aber das MTA zieht Dir die Socken aus. Also der Zeitpunkt war gut und ich war bereit und so steht nun der erste MTA-Server. Ich hab schon früher mal einen COD2 Server gehabt und wer in COD unterwegs war, kannte auch [bERLIN]Games. Damals habe ich mich auch in COD richtig eingearbeitet und selbst die Scripts erstellt. In MTA, habe ich nun leider nicht so viel Zeit um mich wieder einzuarbeiten. Dennoch habe ich bereits ein paar Ressource installiert und angepasst: Speedometer, Race-Progress-Bar, Map-Likes usw. Wie das ganze jetzt ablaufen soll, weiß ich noch nicht. Deshalb hoffe ich das Ihr mir hier etwas auf die Sprünge helft, was must to have ist und was ein NoGO in der MTA-Szenen ist. Ich bin also für Vorschläge sehr offen. Jedenfalls brauche ich ein paar mehr Leute in dem Team. So brauche ich unbedingt jemanden der neue Maps verwaltet, einen Skripter (Du musst nicht der Überskripter sein, ein Grund-Verständnis und ein gesundes Wille Zählt. Genies werden nicht geboren, sondern gemacht. Du musst auch nicht komplett neu Scripts schreiben sondern vorhanden leicht anpassen z.B. englische Text ausgabe auf deutsch ändern oder die Position von grafiken ändern usw.), nette und freundliche Moderatoren, ein Admin, ein Organisation-Talent und natürlich jede Menge nette Spieler. Mein Ziel ist es nicht eine super, dupa, Mega Liga von Fahrer aufzustellen die alles in Grund und Boden fahren. Sondern ich möchte eine nette Gesellschaft von Spielern auf dem Server haben, die dasselbe Hobby mit mir teilen und mit denen man sich nett unterhalten kann. Also wir sehen uns auf dem Server, ich bin unter dem Nick Tatar unterwegs. In dem Sinne verheizt die Reifen aber nicht dein Leben [berlin]Games Race mtasa://5.175.148.69:22003
  15. Hello, I'm new to mta and I like to remove the yellow things and put the red things on the place of the yellow thing http://i48.tinypic.com/359dzzm.jpg Where I can find the lua scripts for that in the resource folder?
×
×
  • Create New...