Jump to content

IIYAMA

Moderators
  • Posts

    6,042
  • Joined

  • Last visited

  • Days Won

    206

Everything posted by IIYAMA

  1. Hey, I got a question: What is onClientRender ? = when you spawn you load objects? or = on join server and downloading scripts? Because I have a hud and it have sometimes a bug. You see two hud's when you die. I use onGameModeStart, ongameModeMapStart and onPlayerJoin to dissable the gta san hud. Do I need on ClientRender to?? Gamemode: Stealth. pls tell me what I need.
  2. IIYAMA

    Help

    ehm I have the error on stealth. Only this script has not been called onServerCallsClientFunction. But still it is the same error. Try your own stealth on server and you will see: Server triggered clientside event ========, but is not added clientside Like 8 of them. I need to know how I can fix spectate on stealth. (stealth script is to big to post it here.) So that is why I writed a sample.
  3. IIYAMA

    Help

    Hello I am IIYAMA I am scripting for the GCC stealth server. --server local spectators = {} local getPlayerSpectatee = {} resourceRoot = getResourceRootElement(getThisResource()) function teamstealthgamestart() killmessageRes = getResourceFromName"killmessages" call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Score") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "kills") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "deaths") playingaround = 0 redwinsdisplay = textCreateDisplay() local redtext = textCreateTextItem ( "RED Team Wins the Match!", 0.5, 0.5, "low", 255, 0, 0, 255, 3, "center", "center" ) textDisplayAddText ( redwinsdisplay, redtext ) bluewinsdisplay = textCreateDisplay() local bluetext = textCreateTextItem ( "BLUE Team Wins the Match!", 0.5, 0.5, "low", 0, 0, 255, 255, 3, "center", "center" ) textDisplayAddText ( bluewinsdisplay, bluetext ) tiegamedisplay = textCreateDisplay() local tietext = textCreateTextItem ( "The Match was a Tie!", 0.5, 0.5, "low", 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( tiegamedisplay, tietext ) waitDisplay = textCreateDisplay() local waittext = textCreateTextItem ( "Wait for next round to spawn.", 0.5, 0.9, "low", 255, 255, 255, 255, 1.6, "center", "center" ) textDisplayAddText ( waitDisplay, waittext ) team1 = createTeam("RED",255,0,0) team2 = createTeam("BLUE",0,0,255) teamprotect = get("stealth.teamdamage") if teamprotect == 1 then setTeamFriendlyFire( team1, false ) setTeamFriendlyFire( team2, false ) elseif teamprotect == 0 then setTeamFriendlyFire( team1, true ) setTeamFriendlyFire( team2, true ) end setElementData ( team1, "Score", 0 ) setElementData ( team2, "Score", 0 ) teamswap = 0 local players = getElementsByType("player") for k,v in ipairs(players) do killPed(v) fadeCamera(v,true) thisplayer = v triggerClientEvent(v,"swaptoggle",getRootElement(), thisplayer, teamswap) setElementData ( v, "kills", 0 ) setElementData ( v, "deaths", 0 ) setPlayerNametagShowing ( v, false ) spectators[v] = true bindKey ( v, "F3", "down", selectTeamKey ) end --Enable laser sight setElementData(getRootElement(),"lasersight",get("stealth.lasersight")) end addEventHandler( "onGamemodeStart", resourceRoot, teamstealthgamestart ) --------------------------------------------------------------------------------------------------------- --client addEvent("swaptoggle", true ) function swaptheteams(thisplayer, teamswap) aretheyswapped = teamswap end addEventHandler("swaptoggle", getRootElement(), swaptheteams) --or how I like top set it addEvent("swaptoggle", true ) function swaptheteams(thisplayer, teamswap) aretheyswapped = teamswap end addEventHandler("swaptoggle", getRootElement(), swaptheteams) ERROR> ERROR: Server triggered clientside event onServerCallsClientFunction, but is not added clientside I got like 8 of these errors in my server.. I still don't get it why these handlers don't work. What the hell is going on from the start, this gamemode has been made?
  4. At the moment it is the spaces as everybody can see. sample: iPipa Ft Nacheto > iPipa_Ft_Nacheto SO rename the folders!
  5. IIYAMA

    Help pls!

    Weapon stats in combination of weaponproperties does not.
  6. IIYAMA

    police vs racers

    It is the same -_-', only with a multiplayer mod. Called as mta,
  7. IIYAMA

    Help pls!

    Ah the script is good. That weapon stats does not co-operate with it -_-" Fuck mta bugs.
  8. IIYAMA

    Help pls!

    I will try it is just very strange of that stats. You are the best scripter on the forum.
  9. IIYAMA

    Help pls!

    yea!!!! thx man only stats set does not work wtf.. any idea why?
  10. IIYAMA

    Help pls!

    warning: bindKey(source,'x','down', bad argument: bindkey Pls, if somebody knows how to fix this or do it on another way. Help me!
  11. IIYAMA

    Help pls!

    --SERVER SIDE!!! alreadyS = 0 function bind () bindkey ( source ,"x", "down", function(player, key, state) if currentWeaponID == 34 then if alreadyS == 0 then setPedStat ( player, 79, 300 ) alreadyS = 1 outputChatBox("Works", player, 255, 69, 0) else setPedStat ( player, 79, 999 ) alreadyS = 0 outputChatBox("works!!.", player, 255, 69, 0) end end end ) end addEventHandler ( "onPlayerJoin", getRootElement(), bind ) I am trying to change the stat of a sniper with the button X. (server side) What did I do wrong?
  12. IIYAMA

    police vs racers

    Good camp, But laggy players that can't drive...
  13. See this: add this there: name = your name Go ingame: /register: IIYAMA pasword pasword = your own password /login IIYAMA pasword Recommended: write it in f8. register: IIYAMA pasword login IIYAMA pasword (you don't have to use / in f8 and if you ever forgot to use: /, your pasword will not be a open book. (happend to me 1x )
  14. yes know that bone_attach script. This will be to hard to make. I can't work with ultimate editor and also my virus scan put it in quarantain. thx for helping all, but I have to change my idea's. THX thx THX thx
  15. Thx BinSlayer1, finnaly I got the right awnser. Also thx Capy for trying to help me. grr stuppit mta...
  16. yes but how do I get this weapon.... This weapon is in the hands of a player. It has not be made as a element. It is just the weapon...
  17. yes how to get this element? Because element is the weapon and not the ped. getelementpedweapon lol
  18. Nope, I am talking about the player his weapon not his name.
  19. I have little problem. I want to make a player really invisible(alpha 0). But I don't know how to set this ped/player his weapon to a element. Anybody have same problem or know how to do this. Pls let me know. Greetings IIYAMA
  20. Thx man! I will try it! Why that check version?
  21. That does not look, if a bullit hit the object I think.
  22. I need a script that blow up the mine when you hit him and not just remove it. Also he must take the owner of the mine as creator of the explosion. Anybody can help me? >Normal activation of mines when you walk over them. :Server addEvent ("poopoutthemine", true ) function laymine(player) local posx, posy, posz = getElementPosition ( player ) local landmine = createObject ( 1510, posx, posy, posz - .999, 0, 0, 3.18 ) local landminecol = createColSphere ( posx, posy, posz, 3 ) setElementData ( landminecol, "type", "alandmine" ) setElementData ( landminecol, "owner", player ) setElementData ( landmine, "type", "proximity" ) setElementParent ( landmine, landminecol ) end addEventHandler("poopoutthemine",getRootElement(),laymine) --DETECTS THE HIT function landminehit ( player, matchingDimension ) if ( getElementData ( source, "type" ) == "alandmine" ) then if ( getElementData ( player, "stealthmode" ) ~= "on" ) then local mineowner = getElementData ( source, "owner" ) local ownersteam = getPlayerTeam ( mineowner ) local victimteam = getPlayerTeam ( player ) if ownersteam ~= victimteam then --IS THIS PLAYER ON THE SAME TEAM AS THE GUY WHO PUT IT THERE? local posx, posy, posz = getElementPosition ( source ) createExplosion (posx, posy, posz, 8, mineowner ) setElementData ( source, "type", nil ) destroyElement ( source ) end end end end addEventHandler ( "onColShapeHit", getRootElement(), landminehit ) :Client Not much importants ------------------------------------------------------------------------------------------------ >Activation of mines when you shoot them. :Server --KILLS THE MINE WHEN SHOT addEvent ("destroylandmine", true ) function destroymine(hitElement) if (hitElement) then local damagedmine = getElementParent ( hitElement ) destroyElement ( damagedmine ) end end addEventHandler("destroylandmine",getRootElement(),destroymine) :Client --TRIGGERS THE SERVER EVENT TO DESTROY A LAND MINE ONCE IT'S SHOT function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if source == getLocalPlayer () then if (hitElement) then if ( getElementData ( hitElement, "type" ) == "proximity" ) then if minedelay ~= 1 then minedelay = 1 triggerServerEvent ("destroylandmine", getLocalPlayer (), hitElement ) endminedelay = setTimer ( minedelaystop, 400, 1, player ) end end end end end addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), weaponfired ) function minedelaystop() minedelay = 0 end I have try everything to fix it, but I just script sinds 3 weeks and this step is to big for me to take. plsssss HELP!! I will be very happy!!!!
×
×
  • Create New...