Jump to content

ViRuZGamiing

Members
  • Posts

    1,050
  • Joined

  • Last visited

Everything posted by ViRuZGamiing

  1. It works, can I add weapon also with Skin and Team chance?
  2. Correct me when i'm wrong: addEventHandler("onResourceStart",resourceRoot, function () newTeam = createTeam ( "MP" , 255, 0 , 0 ) end ) function gimmeATeam ( source, joinMP, MP ) if newTeam then setPlayerTeam ( source, newTeam ) outputChatBox ("welcome in the Militairy Army!" , source,255, 0 , 0 ) setPlayerSkin(playerSource, 164) else getPlayerTeam ( source, MP ) outputChatBox("You are already in the Militairy Police!", playerSource) end end addCommandHandler("joinMP", gimmeATeam)
  3. Can I add: if (getPlayerSkin(playerSource) == 164) then outputChatBox("You are already in the Militairy Police!", playerSource) else setPlayerSkin(playerSource, 164) end end When i write /joinMP i'm in MP and then my skin changes to skinId 164
  4. I now added, when /joinMP you'll see in chat Welcome in the Militairy Army! function gimmeATeam ( source, joinMP, MP ) local newTeam = createTeam ( "MP" , 255, 0 , 0 ) if newTeam then setPlayerTeam ( source, newTeam ) outputChatBox ("welcome in the Militairy Army!" ,255, 0 , 0 ) end end addCommandHandler("joinMP", gimmeATeam) The Problem: Before i wrote /joinMP, MP isn't vissable in the Scoreboard, I think the createTeam need to be onResourceStart instead of onCommand
  5. Almost the same only forgot the color, Thanks
  6. I made this: function gimmeATeam ( source, joinMP, MP ) local newTeam = createTeam ( MP ) if newTeam then setPlayerTeam ( source, newTeam ) end end addCommandHandler("joinMP", gimmeATeam) MP = Militairy Police I think when i type ingame /koinMP that i'm in MP, am I right?
  7. @TAPL this is Client Sided I think?! @SOSO Already thanks
  8. Already thanks for Helping; but can I have a Script that makes me a "team" ? Example: I start Resource "Team" and Mafia, Police, ... show up in Scoreboard Like in most of the RP Server
  9. Helo Community, I want to add a Fraction. I mapped a Base and have the Gate script; local gate = createObject(7709, -2122.5, 381.89999389648, 35.700000762939, 0, 0, 358) megusta = false addCommandHandler("gate", function () if (megusta == false) then moveObject(gate, 2500, -2122.5, 381.89999389648, 30, 0, 0, 0 ) megusta = true elseif (megusta == true) then moveObject(gate, 2500, -2122.5, 381.89999389648, 35.700000762939, 0, 0, 0 ) megusta = false end end) How do I add a Fraction (example: Mafia) and let only them open the Gate with /gate command. Greetings Billy
  10. There's the problem, I posted it in Client Sorry for bothering and thanks for help to: TAPL, Denny and Castro
  11. In the server sided the Marker (busstops) only the 1,2 and 3 are edit right, the rest are still in Los Santos.
  12. Hello Community, I edited a Bus-Script to my coordinates and added busses more. When I enter the bus the script says "You started the bus job" and when exit I get my money. But what I want to edit but don't know how I want when in the marker (busstop) you can't further for 3 Seconds. (Supposed to let players in the bus during the 3 Seconds) But also when you're in the marker an chatboxOutPut say (only for that jobbing player) Next Stop: Name of the Stop The stops i know have are: Jiggy's, Park, Hospital Also when I leave the bus or the bus explodes the Bus stays there. i want "onVehicleCollapse" and "onVehicleExit" (I think) to be Bus Respawn to the Scripts bus map spawn. The Script Client-Sided Server-Sided Map(buss spawn) Already thanks for helping, Billy M.
  13. The gate still don't open and the marker is Vissable. Same Problem, differtent script. I'll think i delete the Gate
  14. @TAPL, Is this Script correct of "Castro" or not?
  15. Now i use your script denny, The Gate won't open when bus is near, I see the Red Marker (Not supposed to be vissable) I the bus of the Bus Job Script I have. normally no problem. Please Help
  16. Do I replace colshape createColRectangle ( float fX, float fY, float fWidth, float fHeight) for the addCommandHandler? Please I'm really a noob in scripting and I don't understand the WIKI language
  17. Can you show me the Col thing? My Coördinates Open: "object (barrierturn) (1)" interior="0" alpha="255" doublesided="true" model="968" scale="1" dimension="0" posX="-2063.5" posY="1371.0999755859" posZ="7.0999999046326" rotX="0" rotY="0" rotZ="0"> Closed: "object (barrierturn) (1)" interior="0" alpha="255" doublesided="true" model="968" scale="1" dimension="0" posX="-2063.5" posY="1371.0999755859" posZ="7.0999999046326" rotX="0" rotY="270" rotZ="0">
  18. Can I also let the Gate go open when a Car is near? But only for Busses ''no other cars''
  19. 1 Command is much better, the invisable wall is fixed (Mapping problem) Thanks. Problem solved /close
  20. The gate goes open and closes but: It Rotates while opening and closing, When open I can enter there is an Invisable wall
  21. Hello Community, here's my script: local gate = createObject(7709, -2122.5, 381.89999389648, 35.700000762939, 0, 0, 358) function open() moveObject(gate, -2122.5, 381.89999389648, 30, 0, 0, 358 ) end addCommandHandler("open", open) function close() moveObject(gate, -2122.5, 381.89999389648, 35.700000762939, 0, 0, 358 ) end addCommandHandler("close", close) My Problem: When /open the Gate is Invisible but still there When /close nothing happens. Please help me, Thanks
×
×
  • Create New...