Jump to content

IIYAMA

Moderators
  • Posts

    6,002
  • Joined

  • Last visited

  • Days Won

    200

Everything posted by IIYAMA

  1. You can better try that one of Hunterix.. Because I am not sure about my script
  2. setTimer ( black, 2000, 1) --check timer > function black. function black (player) local account = getAccountName(getPlayerAccount(player)) --get account if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then --check if it is admin local theVehicle = getPlayerOccupiedVehicle ( player ) -- get the vehicle if theVehicle then -- check if it does exist setVehicleColor ( theVehicle, 0, 0, 0, [0, 0, 0,] [0, 0, 0,] [0, 0, 0] ) --setcolor end end end I used the timer because in a race map, you wont enter your vehicle.. but you spawn with it. -- Maybe this... I can't test it right now (school)..... I hope it works.
  3. timer don't lagg, but I think what I did is also good. But maybe you know the game age of empire 3? Well I made a map with arround 1200 scripts and it is crashing in mutiplayer I love the game but I hate the out of sync
  4. IIYAMA

    spawn timer

    --if you use this script above mind> fucntion whatever = function whatever (I post this at the sametime as his one I am a noob scipter... pls say If I do something wrong. I write it down like this: (it can be smaller) function Wasted () -- function Wasted <<< setTimer ( Wastedtimer, 2000, 0 ) -- this is the timer and will activate the second function. end addEventHandler("onPlayerWasted", root, Wasted) -- this checks when you die. "The Wasted" activate the function Wasted. function Wastedtimer () spawnPlayer ( source, 0.0, 0.0, 0.0, 0.0, 0 ) end --[[ just fill it in. (mind all players will be spawned at one location.) Required Arguments thePlayer: The player you want to spawn. x: The x co-ordinate to spawn the player at. y: The y co-ordinate to spawn the player at. z: The z co-ordinate to spawn the player at. Optional Arguments rotation: rotation of the player on spawn. skinID: player's skin on spawn. interior: interior the player will spawn into. dimension: The ID of the dimension that the player should be in. theTeam: the team the player will join. More info about spawning: https://wiki.multitheftauto.com/wiki/SpawnPlayer ]]
  5. yes that is right, but this is about deactivate the gta san hud. It is not about showing up the GCC hud GCC = clan
  6. yes I saw the resource.. But I want the lagg so low as possible. So my choose is: OnClientPlayerSpawn, "gamemode" and "map"
  7. yes I know... But I don't understand the meaning of this: This event is triggered every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other clientside operations that have to be applied repeatedly with very short time differences between them. So If I play my mta at 70 frames, will this script activated every 70 times in a frame? It sounds terible laggy...
  8. but what is: onClientRender ??
  9. Maybe onPlayerSpawn and timer.. because there is the problem.
  10. I am using a script that dissable the normal gta hud... but when you get killed, the normal gta san hud come back somehow..
  11. 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.
  12. 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.
  13. 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?
  14. At the moment it is the spaces as everybody can see. sample: iPipa Ft Nacheto > iPipa_Ft_Nacheto SO rename the folders!
  15. IIYAMA

    Help pls!

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

    police vs racers

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

    Help pls!

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

    Help pls!

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

    Help pls!

    yea!!!! thx man only stats set does not work wtf.. any idea why?
  20. 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!
  21. 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?
  22. IIYAMA

    police vs racers

    Good camp, But laggy players that can't drive...
  23. 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 )
×
×
  • Create New...