-
Posts
367 -
Joined
-
Last visited
Everything posted by Ab-47
-
Dimension 0 is default, where everything is. Also check if you're in interior 0 - MAIN
-
RPG Race and Stuntage oh and those Saudi servers with drift mods etc.
-
--Client addCommandHandler("afk", function (player) setElementPosition(player, 1904.8403320313, 717.12438964844, 49.214366912842) outputChatBox( "You are now in Afk zone", player, 0, 255, 0 ) setElementData(player, "afk.godmode", true) setElementData(player, "afk.withinZone", true) triggerServerEvent("afk.takeWeps", root, player) end ) function onHit(plr) if (plr and isElement(plr) and getElementType(plr) == "player") then if (getElementData(plr, "afk.godmode") == true) then cancelEvent() end end end addEventHandler("onClientPlayerDamage", root, onHit) --Server function takeWeps() takeAllWeapons(localPlayer) end addEvent("afk.takeWeps", true) addEventHandler("afk.takeWeps", root, takeWeps) Not tested, let me know if there's any errors.
-
Are you sure this is correct? if getElementData(source,"spawnedtanks")+3 I think that "+3" is the problem because you're using "<= gameplayVariables.playertanks" against the existing element data.. try if getElementData(source,"spawnedtanks") <= gameplayVariables.playertanks then Your debug error does say line 67, I'm guessing it's this. Or maybe 'gameplayVariables.playertanks' is indecipherable within your code?
-
why stupid? It's useful to keep scripts in safe. There are many people against the MTA's online compiler, they feel compiling their own code in their own way is safer. Have a look: https://forum.multitheftauto.com/viewtopic.php?f=91&t=65618
-
Oh Oh, I heard that ^^ ^ I'm chilling whilst exams are coming I hate studying But I guess I'm gonna have to
-
haha, you can always get another pencil which means: Can Write Can do homework Studies = true Work = true Money = true Houses, yes, food, yes Good looking handsome dude Beautiful wife Life, no death Oh and a reply to this thread
-
What if the player idle's in the server whilst opening up the downloaded resources directory and takes the code directly?
-
Afaik, you'll get a debug error saying something like expected error at argument 1 (a nil value). Or maybe if player is defined, then.. Just try WASSim's way or Solidsnake's..
-
You guys must have missed me, am I right? My net expired
-
What are you trying to do? I've cleared it up for you (not tested), but what you're doing is entering a col shape, opening the gate then when you leave the colshape, it closes and rotates to rot z 272 degrees.. local gate = createObject( 980, 2253.1000976563, 512.5, 2 ) --Object ID (Airport Gate=978) & Co-Ordinates of your gates start of position. local gatecol = createColCircle ( 2253.1000976563, 512.5, 25 ) --Co-Ordinates "X" and "Y" and the radius, I use 15 as default. local team = getPlayerTeam ( localPlayer ) local teamName = (getTeamName ( team )) function openagates ( thePlayer ) if ( getElementType ( thePlayer ) == "player" ) then if ( teamName == "Staff" ) then moveObject ( gate, 2000, 2253.1000976563, 512.5, -3 ) --The speed in which 7000 is slow and 2000 is fast to open, Co-Ordinates for the gate to move to. else outputChatBox ( "Sorry, you can not open this gate as you are not in the specified groups", thePlayer ) end end end addEventHandler ( "onColShapeHit", gatecol, openagates ) --Event Handler to trigger the function function closeagates(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then if ( teamName == "Staff" ) then moveObject ( gate, 1000, 2253.1000976563, 512.5, 2 ) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close. rX, rY, rZ = getElementRotation ( gate ) setElementRotation ( gate, rX, rY,rZ+272, true ) end end end addEventHandler ( "onColShapeLeave", gatecol, closeagates ) --Event Handler to trigger the function
-
Great news and great job! Looking forward in the next edition
-
local anim = false function yourFunc() if (anim == false) then --add your arguments/functions here anim = true setTimer(function ( ) anim = false end, 10000, 1) else outputChatBox("Please wait 10 seconds before you can use this command again.", localPlayer, 255, 0, 0) end end addCommandHandler("ve", yourFunc) That's a way you can prevent someone using the same command under 10 seconds if that's what you need..
-
Press "G" besides a bike, you're able to sit as a passenger..
-
"addEventHandler("onClientMarkerLeave", marker, closeGate)" You've used a client event on a, let me guess, server side code? If on a client side code you've used a server function here: addEventHandler("onMarkerHit", marker, openGate) Just read the wiki, as Solidsnake said;
-
Have you got a custom admins panel? Anyway, try setAccountData after getting the players weapons probably after a certain period of time for i.e setTimer, or when the player quits. Then on login use getAccountData get the weapons the player had and give them to him if he doesn't have it. Using checks of-course.
-
Y U advertise on last reply? huh? xP
-
F*** that sh*t, I'm from the present 02/02/2014!