
Senze
Members-
Posts
43 -
Joined
-
Last visited
Everything posted by Senze
-
hey guys i've got a little problem so i hope you can help me =) the problem: i've try to make en keybind manager for my resource to use commands like /su much easier for the players but I wont use a keybind with the function. i wont to use the keybind for example so: press "m" and in the chatbox there will stand /su an the player have to finish the complet command (/su [player] [reason]) so but i dont now how to do that I realy Hope you can help me =) and another question is about velocity so ive do this in my script: local speedx, speedy, speedz = getElementVelocity(Element) local speed = (speedx^2 + speedy^2 + speedz^2)^(0.5)*100 to get the speed from vehicle but i dont think there are only 106 kmh with nrg500 on full speed so how to fix this it is for Speed camera. greeze SenZe
-
German: Danke Tobi deutsch war mir persönlich lieber aber naja die sache ist das moveObject eine Rotation sein soll für Schranken und wenn man den marker immer wieder betritt bringt das nix da rotiert die imemr weiter und weiter und weiter da du ja eine Relative Rotation zur aktuellen angeben musst =/ English: Thanks Tobi but the real Problem is the follow und want to rotate the Object because its a barrier but its the same if you hit the Marker again it will rotate agian because the rotation in moveObject will be the relativ Rotaion to the Current Rotation =/
-
Hey Guys i've got a Problem i've try to script if Someone enter a spezial ColShape the Object will Move but when you go some more in to ColShape it will move again and so on. function ToreOeffnen() if source == sfPDtor then triggerServerEvent("sfPdTor", getLocalPlayer()) end if source == sfPDschranke1 then triggerServerEvent("sfPdSchranke1", getLocalPlayer()) end if source == sfPDschranke2 then triggerServerEvent("sfPdSchranke2", getLocalPlayer()) end end addEventHandler("onClientColShapeHit", getRootElement(), ToreOeffnen) function SFPDSchranke1Auf() local Team = getPlayerTeam(source) if Team == teamSFPD then moveObject(schrankeSF1, 5000, -1572.2048339844, 658.8115234375, 6.9281253814697, 0, -90, 0) end end addEventHandler("sfPdSchranke1", getRootElement(), SFPDSchranke1Auf) can some help me with my problem =( mfg SenZe
-
hey Guys the Problem is this when a player on my Server is allways in a team and restart the resource later. The Playerteam will reset. I ve do something but nothings happen maybe you can help me something function ResourceStop() for k, player in ipairs(getElementsByType("player")) do local acc = getAccount(getPlayerName(player)) if acc then local playername = getPlayerName(player) local team = getPlayerTeam(playername) if team == lspd then setAccountData(acc, "rpg.Team", lspd) end end end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), ResourceStop) function ResourceRestart() for k, player in ipairs(getElementsByType("player")) do local acc = getAccount(getPlayerName(player)) if acc then local team = getAccountData(acc, "rpg.Team") local playername = getPlayerName(player) if team == lspd then setPlayerTeam(player, lspd) end end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), ResourceRestart)
-
hey Guys the Problem is this when a player on my Server is allways in a team and restart the resource later. The Playerteam will reset. I ve do something but nothings happen maybe you can help me something function ResourceStop() for k, player in ipairs(getElementsByType("player")) do local acc = getAccount(getPlayerName(player)) if acc then local playername = getPlayerName(player) local team = getPlayerTeam(playername) if team == lspd then setAccountData(acc, "rpg.Team", lspd) end end end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), ResourceStop) function ResourceRestart() for k, player in ipairs(getElementsByType("player")) do local acc = getAccount(getPlayerName(player)) if acc then local team = getAccountData(acc, "rpg.Team") local playername = getPlayerName(player) if team == lspd then setPlayerTeam(player, lspd) end end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), ResourceRestart)
-
won't work =( so ca some one post me the command plz this will realy help me a lot. EDIT:// so ive got it now function Arrest(Spieler, Befehl, Mitspieler) local team = getPlayerTeam(Spieler) local name = getPlayerFromName(Mitspieler) if team == lspd then if PlayerToPoint(Spieler, 3, 268, 77, 1001) then local player = getPlayerName(name) -- 'element' to 'name' local level = getPlayerWantedLevel(name) --'element' to 'name' if level > 0 then setElementInterior(name, 6) setElementPosition(name, 265, 77, 1002) else outputChatBox("Dieser Spieler ist nicht gesucht", Spieler) end else outputChatBox("Du befindest dich nicht im PD.", Spieler) end else outputChatBox("Du bst kein Polizist.", Spieler ) end end addCommandHandler("arrest", Arrest)
-
the arrest player won't move in to the Jail and in the serverconsole will come this: [13:57:13] WARNING: Hauptscript.lua: Bad argument @ 'getPlayerName' - Line: 501 [13:57:13] WARNING: Hauptscript.lua: Bad argument @ 'setPlayerWantedLevel' - Lin e: 502 and nothing is happen =( need relly help =(
-
Hey Guys i have i big problem with the arrest command I scripting a Rl Server here are the Lines: function Arrest(Spieler, Befehl, Mitspieler) local team = getPlayerTeam(Spieler) local name = getPlayerFromName(Mitspieler) if team == lspd then if PlayerToPoint(Spieler, 3, 268, 77, 1001) then local element = getElementType(name) if element == "player" then local player = getPlayerName(element) local level = getPlayerWantedLevel(element) if level > 0 then setElementInterior(player, 6, 265, 77, 1002) else outputChatBox("Dieser Spieler ist nicht gesucht", Spieler) end else outputDebugString("Es befindet sich ein Fehler in der Abfrage Element") end else outputChatBox("Du befindest dich nicht im PD.", Spieler) end else outputChatBox("Du bst kein Polizist.", Spieler) end end addCommandHandler("arrest", Arrest) i need some help plz =(
-
Hm so i think i wont do this i try to lets find another way ^^
-
hm thats hard i think =/ you know how i can do this?
-
Hey Guys i have a Question you all know the Police Maverick in singleplayer when you have 4 stars the SWAT Team will jump out form Helicopter with a robe and jump to ground so my question is can you scripting or do something else to do this in mta its will realy cool for my Roleplay server =)
-
ah k thx to all ive got it now
-
hm now i have take this function WantedCheck(Spieler, Befehl) local team = getPlayerTeam(Spieler) if( team == lspd) then outputChatBox("Derzeit gesuchte Personen:", Spieler) for k, player in ipairs(getElementsByType("player")) do local name = getPlayerFromName(player) local level = getPlayerWantedLevel(name) outputChatBox(""..name..": "..level.."", Spieler) end else outputChatBox("Du bist kein Polizist!", Spieler) end end addCommandHandler("wanted", WantedCheck) but nothing is happen =(
-
Hey guys i need help at a command somebody know it from GF in SAMP. So how i can get the Wantedlevel of all Player which plays on the server at the Moment?
-
Oh right thats simple so you see if its to easy you forgett it thx
-
Hey Guys i need a little bit help to set a pickup in a Interior but who can i do this when I only write the Coordinates i wouldnt spawn in the interior i hope you can help me =)
-
Hey Guys i have a question i've wrote a function which says when a vehicle is on explode there will be a fire on this point so i've made the fire with the function createFire i hope you can help me =) because the fire wont remove by fire trucks or others greeze SenZe PS.: Iam a German sry for my bad english
-
Hey guys i've got a big problem I want to make a linux server the problem is i get some errors: first i've downloaded the linux package from linux.multitheftauto.com i paste the files on my root server but now i've got this error =( when i try to start mta-server: ./mta-server: error while loading shared libraries: libcurl.so.3: cannot open sared object file: No such file or directory so i realy need help plz =( mfg SenZe