• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Pikachu

  • Rank
    Advanced Member
  1. Fixed and thanks guys
  2. Is there a solution? This is the only problem I have, and REALLY need it fixed asap
  3. function moveCrim(theAttacker, attackerWeapon) if getElementType(source) == "player" and getElementType(theAttacker) == "player" and (attackerWeapon == 33) then setElementFrozen(source, true) setTimer(function(source) setElementFrozen(source, false) end, 5000, 1) end end addEventHandler("onPlayerDamage", getRootElement(), moveCrim) Help me please
  4. none of you answers are correct.
  5. Pikachu

    [HELP] script

    If you are going to test it, that means you should help me with it after that, not ask for help. Somebody lock this please.
  6. Pikachu

    [HELP] script

    You shouldn't steal others' scripts and ask for help about it in their topics.
  7. As the title says... I can't make a server because hen i open MTA server.exe, after it says: "Server started and is ready to accept connections!" it automaticly shutsdown!
  8. Pikachu

    [HELP] script

    Are you stupid or what O_o ? You should help me with the script, not ask for help in this topic! Somebody lock this topic and pm me if he have the fix.
  9. http://community.multitheftauto.com/ind ... ls&id=5708 Original by Deject3d: http://community.mtasa.com/index.php?p= ... ils&id=614 DONE
  10. Pikachu

    [HELP] script

    Client Side: JobGUI = guiCreateWindow(249,240,307,176,"Job GUI",false) guiWindowSetSizable(JobGUI,false) guiWindowSetMovable(JobGUI,false) guiSetAlpha(JobGUI,0.89999997615814) guiSetVisible(JobGUI, false) EndStartJ = guiCreateButton(26,37,254,58,"End/start shift",false,JobGUI) QuitJ = guiCreateButton(26,98,254,58,"Quit job",false,JobGUI) function ShowGUI ( ) guiSetVisible ( JobGUI, not guiGetVisible ( JobGUI ) ) showCursor ( not isCursorShowing( ) ) end bindKey("F2","down", ShowGUI) function shift() local localPlayer = getLocalPlayer() triggerServerEvent("jobShift", localPlayer) end addEventHandler("onClientGUIClick", EndStartJ, shift) function hideGUI() guiSetVisible(JobGUI, false) showCursor(false) end addEvent("hide", true) addEventHandler("hide", localPlayer, hideGUI) Server Side: emp = createTeam("Unemployed team", 127, 127, 127) occ = createTeam("Unoccupied team", 173, 255, 0) function jobShift() local team = getPlayerTeam(source) if (team and getTeamName(team) == "Staff") or (team and getTeamName(team) == "Armed Forces") or (team and getTeamName(team) == "SWAT Team") or (team and getTeamName(team) == "Government") or (team and getTeamName(team) == "Civilian Workers") or (team and getTeamName(team) == "Medic") or (team and getTeamName(team) == "Police") or (team and getTeamName(team) == "Criminal") then teamO = getPlayerTeam(source) pSkin = getElementModel(source) setPlayerTeam(source, emp) setElementModel(source, 0) triggerClientEvent("hide", getRootElement()) end elseif (team and getTeamName(team) == emp) then setElementModel(source, pSkin) triggerClientEvent("hide", getRootElement()) end end addEvent("jobShift", true) addEventHandler("jobShift", getRootElement(), jobShift) What it should do: make players able to set their team to "Unemployed" and back to their old team.... That's all for now. But the problem is when i end shift, i can't come back to my old team.... Can somebody help me please?
  11. Tested it and it's not working at all Well, i want it to output the message when a team wins at Mate's BaseMode 1.0
  12. script2 fixed. still script 1, wich i really need it. EDIT: script 1 solved.
  13. still the same problem, and what about the first script?
  14. Bad argument @ 'getElementData' [Expected element at argument 1, got nil]
  15. script: local ghostMarker = createMarker(-2405, -598, 132.6, "cylinder", 10, 255, 255, 255, 255) function ghost() local p = getElementsByType("player") for index,vehicle in ipairs(getElementsByType("vehicle")) do setElementCollidableWith(vehicle, p, false) end outputChatBox("You have entred ghostmode marker, you are now a ghost ;P", source,0,0,55) end addEventHandler("onMarkerHit", ghostMarker, ghost) function unGhost() local p = getElementsByType("player") for index,vehicle in ipairs(getElementsByType("vehicle")) do setElementCollidableWith(vehicle, p, true) end outputChatBox("You have left ghostmode marker, you are no more a ghost D:", source,0,0,55) end addEventHandler("onMarkerLeave", ghostMarker, unGhost) problem: attempt to call global setElementCollidableWith (a nil value) function(from script 2): function onOccupationChange() if not getElementData(source, "Occupation") == "Mailman" then return end elseif getElementData(source, "Occupation") == "Mailman" then local x, y, z = getNewMailLocation(source, 1) setElementData(source,"mailData",1) end addEventHandler("onElementDataChange", getRootElement(), onOccupationChange) problem: 'end' expected (to close function at line 1) near elseif