Jump to content

xDrul

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by xDrul

  1. xDrul

    MTA bugs

    Bump, still happens also after re-installing GTA.
  2. xDrul

    MTA bugs

    Multi Theft Auto v1.3.5-release-6225 Copyright © 2003 - 2014 Multi Theft Auto
  3. xDrul

    MTA bugs

    Afternoon! After updating my MTA (in order to join SAES, i had to) my MTA started to bug. Sometimes when jumping, my gravity starts bugging and makes me fly without me being able to do anything. At my local server, when using adminfly, it also bugs. It looks like i'm falling the whole time, which is pretty annoying. Re-started MTA 100 times, re-installed MTA 3 times and restarted my PC also 3 times. Anyone could help me out? Thanks!
  4. Hola, I've been busy recently trying to script a police job including a jailbreak. The triggerEvent is wrong, and i've got no idea what's wrong in it. If anyone could help me out, that'd be much appreciated. function polices ( attacker, attackerweapon, bodypart, loss ) if attacker and getElementType(attacker) == "player" then theTeam = getPlayerTeam ( attacker ) theWL = getPlayerWantedLevel ( source ) money = theWL * 2.5 if (attackerweapon == 3 or attackerweapon == 23) and (loss > 2 ) and (theWL > 0) then if getTeamName( theTeam ) == "Police" or getTeamName( theTeam ) == "United States Army" or getTeamName( theTeam ) == "Sheriff Academy" then setElementPosition (source, 4076.3999023438, -1788.5, 3.511967, true) theName = getPlayerName ( source ) theCop = getPlayerName ( attacker ) outputChatBox( "*INFO* "..theName.." has been jailed and arrested by "..theCop.."", source, 255, 255, 0 ) local playeraccount = getPlayerAccount ( attacker ) givePlayerMoney (attacker, money) setElementData(source, "isJailed", "true") setTimer ( newEvent, 1000, 1 ) end end end end addEventHandler ("onPlayerDamage", getRootElement(), polices) function newEvent() theName = getPlayerName(source) if getElementData(source, "isJailed") == "true" then setElementData(source, "isJailed", "false") setPlayerWantedLevel(source, 0) end end addEvent("releasePlayer", true) addEventHandler("releasePlayer", getRootElement(), newEvent) So bassicly, i want to trigger this newEvent after a sec being in jail (1 sec just to test it out, will be changed after tho) but then debugscript tells me: Bad argument, expected element at argument 1, got nill (@ newEvent). All help 'preciated, cheers.
  5. Change the 'source' @ setTeam to client
  6. Use triggerServerEvent So instead of the outputChatBox @ the client side, you use addCommandHandler ( "extermination", function ( MissionExtermination ) if isAccountInGroup ( { "Exterminator" "Soldier" }, getAccountName ( getPlayerAccount ( MissionExtermination ) ) ) then triggerServerEvent("extermination", getRootElement()) else outputChatBox ("^ You have no acces to that command.", MissionExtermination ) end end ) Server side fixed; function output() outputChatBox("^ ATTENTION WARNING!", 255, 0, 0) outputChatBox("^ Started mission: Extermination.", 255, 0, 0) end addEvent("extermination", true) addEventHandler("extermination", getRootElement(), output)
  7. local staff = createTeam("Staff", 255, 255, 255) function onLogin(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setPlayerTeam(thePlayer, staff) end end addEventHandler("onPlayerLogin", getRootElement(), onLogin) Something like this, i can't test it atm as i'm not on my PC. If it doesn't work, tell me what debugscript says.
  8. gawd. Thanks for the fast reply
  9. Yow, So i've faced some troubles at my script. I'm trying to make an interior door, but for some reason it bugs. The door opens for me, but stays closed for all others. Anyway to fix that / what did I do wrong? D: allowedClasses = { ["HQ"] = true, } local marker = createMarker(posX, posY, posZ, "arrow", 1.5, 255, 0, 0) setElementInterior(marker, 3) local door = createObject(2930, posX, posY, posZ, rotX, rotY, rotZ) setElementInterior(door, 3) function moveTheGate() if allowedClasses[(getElementData(source, "Class"))] then moveObject(door, 3000, newX, newY, newZ) end end addEventHandler("onClientMarkerHit", getRootElement(), moveTheGate) Sorry, on my iPad now so i can't post the whole script/xyz and shit. All help is much 'preciated
  10. xDrul

    Weapon kicker?!

    o.0 anyway to fix it ?
  11. xDrul

    Weapon kicker?!

    Try it m8, i've copied & past exactly the same you posted
  12. xDrul

    Weapon kicker?!

    Tfoe, i've tested it out with some friends.. They're able to kick me too (not in the Staff team) anyway to fix that? Besides that it works!
  13. xDrul

    Weapon kicker?!

    Thanks alot! It worked! Just one small question left, can i also add smthg like outputChatBox('player who've been kicked' has been kicked by 'the attacker'") ?
  14. xDrul

    Weapon kicker?!

    Orly . I did, didn't work tho
  15. xDrul

    Weapon kicker?!

    This one doesnt work o.0
  16. xDrul

    Weapon kicker?!

    Yeah, so i understand i should use getPlayerTeam & local team == ? And yep, so f.e. i shoot a bud with a M4 (or any other weapon(s), he will be 'kicked' warped to another position with setElementPosition)
  17. xDrul

    Weapon kicker?!

    Doesnt kickPlayer kick the player out of the server? I actually ment the way to set their position to f.e. Las Vent. Cross. (so with setElementPosition(source, x, y, z, attacker) or idk
  18. xDrul

    Weapon kicker?!

    Yeah, i've tried that. It didnt work bcz i still don't know how to use that f8*]>|>|[cking code
  19. Hi, I'm tryin' to script a 'weapon kicker', a script which allow me to kick players to another position by shooting him/her.. Great to get rid of dm'ers at roleplays / admin events etc etc . I've tied to script it several times but failed alot which codes should i use? onClientDamage/setElementPosition?? All help much 'preciated!
×
×
  • Create New...