Kleine Mapping frage
Suche Parkstreifen.
Finde aber keine in Editor
Beiträge von Lennardt
-
-
Mich hat es leider nicht überzeugt.
Aber Good luck
-
@'final´
Das hilfsreichste Komentar !
Danke !!! -
Genau aber ich weiss nicht ganz genau was ich mit den beispielen anfangen soll.
Soll ich mich jetzt hin setzen und einfsch was anschauen ?
-
Ich ging davon aus das er damit zocken möchte. Ich finde es einfach zu teuer für zu wenig Hardware.
-
Danke Bonus.
Ich weiß nicht ganz ob das hier rein passt aber wie habt ihr mit den mta wiki scripten gelernt. Ich lerne jetzt seit zwei Wochen, jedoch fällt mir das Arbeiten mit dem wiki noch sehr schwer
Server funktion
Server events etc -
Nein lohnt sich nicht !
-
Ich ware heute mal auf den Race Server.
Das geile ich habe davor noch nie Race gespielt xxD.
Hat Supper viel Spaß gemacht nur zu empfehlen. -
Lua
Alles anzeigen-- define our chat radius local chatRadius = 20 --units -- define a handler that will distribute the message to all nearby players function sendMessageToNearbyPlayers( message, messageType ) -- we will only send normal chat messages, action and team types will be ignored if messageType == 0 then -- get the chatting player's position local posX, posY, posZ = getElementPosition( source ) -- create a sphere of the specified radius in that position local chatSphere = createColSphere( posX, posY, posZ, chatRadius ) -- get a table all player elements inside it local nearbyPlayers = getElementsWithinColShape( chatSphere, "player" ) -- and destroy the sphere, since we're done with it destroyElement( chatSphere ) -- deliver the message to each player in that table for index, nearbyPlayer in ipairs( nearbyPlayers ) do outputChatBox( message, nearbyPlayer ) end end end
Gleich noch eine Frage wofür ist das hell graue ?
-
-
@DerKeks Herzlichen Danl
-
Lua
Alles anzeigenoutputChatBox ("Hallo du da!") outputChatBox ("Hallo du da!",getRootElement(),216,22,22) outputChatBox ("Hallo du da!",getRootElement(),58,250,15) function outputplayerName(player,cmd,farbe) local pname = getplayerName(player) if not farbe then return false end if farbe == "rot" then outputChatBox(pname,getRootElement()255,0,0) elseif farbe == "gruen" then outputChatBox(pname,getRootElement()0,255,0) elseif farbe == "blau" then outputChatBox(pname,getRootElement()0,0,255) elseif outputChatBox(pname) end return true end addComandHandler("pname",outputplayerName)
Ich finde den Fehler leider nicht, selbst mit debugscript 3 nicht
-
getRooutputChatBox ? -
TDS ein toller Server.
-
Was ist das ?
Bitte nutze auch in Zukunft den LUA Quellcode. Ist besser. Bestimmt auch für den Supporter @Bonus
Wo finde ich dieses ? -
Hallo du da!
Hallo du da!
Lennardt ist ins Fahrzeug eingestiegen.Thema erledigt
-
Denk doch mal vorher nach, was du das tust.
Du ratest nur, denk etwas nach, guck dir die Funktion an usw.
Versuche es zu verstehen, denn hier geht es darum zu lernen, nicht die Lösungen zu bekommen.Bin ich damit gemeint ?
-
outputPlayerNameOnEnter
Habe ausversehen oben was mit kopiert
Von einer anderen Function -
function outputPlayerNameOnEnter(player)
local pname = getPlayerName (player)
outputChatBox(pname.." ist ins Fahrzeug eingestiegen.")
endaddEventHandler("onVehicleEnter",getRootElement(),outputPlayerName)
Klappt immer noch nicht
-
addCommandHandler("pname",outputPlayerName)
function outputPlayerNameOnEnter(player)
local pname = getPlayerName (player)
outputChatBox(tostring(pname.." ist ins Fahrzeug eingestiegen.")
endaddEventHandler("onVehicleEnter",getRootElement(),outputPlayerName)
Findet wer den Fehler ?
Es kommt leider nicht "(Spieler) ist ins Fahrzeug gestiegen
Es kommt auch keinen Fehler in der Datenbank