Jump to content

bartje01

Members
  • Posts

    208
  • Joined

  • Last visited

Everything posted by bartje01

  1. @ TAPL. And I can't do this for each player? FFS did it
  2. Ah thanks, but how can I import them to my server?
  3. Hey all. How can I make nice looking GUIs like this?: http://www.moddb.com/mods/multi-theft-a ... hter-black I'm not sure if it's script related or a mod.
  4. Thanks it works. Now I ahve another problem. When I open the mapshop it doesn't show any map. I have my maps in here: J:\MTA\server\mods\deathmatch\resources
  5. Hello everyone. I'm making a DM/DD server. I downloaded the script from here : https://community.multitheftauto.com/ind ... ls&id=5530 There's one problem. When someone's last alive he wins the map and the next map starts. I want to let the last alive finish the map and when he dies the next map should start. Does anyone know where to look? I've been searching for an hour by now and still no clue.
  6. Ye... well. I don't understand :l
  7. Hey guys. I want that if the player his level = 2, the triggerevent activates. I have this: if getElementData(source, tostring(sqldata[1]["level"])) == 2 then triggerClientEvent ( source,"l2", source ) Well, I know that this is terribly wrong, but I'm not sure how to fix it. Does anyone have an idea? This is the executetable (Not sure if needed) executeSQLCreateTable("levels", "accountname STRING, level INT")
  8. How do you expect the image to appear if you are using absolute positions but you have defined the positioning as relative? Change guiCreateStaticImage( 20, 200, 100, 100, "get5zombiekills.png", true ) to guiCreateStaticImage( 20, 200, 100, 100, "get5zombiekills.png", false ) Thankyou, works fine now. But.. how can I set a timer that it stays for two seconds?
  9. <meta> <settings> <setting name="*MaxZombies" value="[100]" /> <!--maximum allowed zombies --> <setting name="*StreamMethod" value="[1]" /> <!-- 1 to constantly stream zombies, 0 to only allow zombies to spawn via createZombie function, 2 to only allow spawning at set spawnpoints --> <setting name="*Speed" value="[1]" /> <!-- 0 is slowest, 1 is normal, 2 faster --> </settings> <info author="Slothman" name="Zday script" version="3.0.1" type="script" description="Zombie Infestation script" edf:definition="edf/zombies.edf"/>/> <script src="zombie_server.lua" /> <script src="teams.lua" /> <script src="zombiekill_server.lua" /> <script src="saver.lua" /> <script src="level.lua" /> <script src="zombie_client.lua" type="client"/> <script type="client" src="Client_SW.lua"/> <script type="server" src="Server_SW.lua"/> <file src="images/1.png"/> <file src="images/16.png"/> <file src="images/22.png"/> <file src="images/23.png"/> <file src="images/24.png"/> <file src="images/25.png"/> <file src="images/26.png"/> <file src="images/27.png"/> <file src="images/28.png"/> <file src="images/29.png"/> <file src="images/30.png"/> <file src="images/31.png"/> <file src="images/32.png"/> <file src="images/33.png"/> <file src="images/34.png"/> <file src="zombiewood.png" /> <file src="skins/13.txd" /> <file src="skins/22.txd" /> <file src="skins/56.txd" /> <file src="skins/67.txd" /> <file src="skins/68.txd" /> <file src="skins/69.txd" /> <file src="skins/70.txd" /> <file src="skins/84.txd" /> <file src="skins/92.txd" /> <file src="skins/97.txd" /> <file src="skins/105.txd" /> <file src="skins/107.txd" /> <file src="skins/108.txd" /> <file src="skins/111.txd" /> <file src="skins/126.txd" /> <file src="skins/127.txd" /> <file src="skins/128.txd" /> <file src="skins/152.txd" /> <file src="skins/162.txd" /> <file src="skins/167.txd" /> <file src="skins/188.txd" /> <file src="skins/192.txd" /> <file src="skins/195.txd" /> <file src="skins/206.txd" /> <file src="skins/209.txd" /> <file src="skins/212.txd" /> <file src="skins/229.txd" /> <file src="skins/230.txd" /> <file src="skins/258.txd" /> <file src="skins/264.txd" /> <file src="skins/274.txd" /> <file src="skins/277.txd" /> <file src="skins/280.txd" /> <file src="skins/287.txd" /> <file src="sounds/mgroan1.ogg" /> <file src="sounds/mgroan2.ogg" /> <file src="sounds/mgroan3.ogg" /> <file src="sounds/mgroan4.ogg" /> <file src="sounds/mgroan5.ogg" /> <file src="sounds/mgroan6.ogg" /> <file src="sounds/mgroan7.ogg" /> <file src="sounds/mgroan8.ogg" /> <file src="sounds/mgroan9.ogg" /> <file src="sounds/mgroan10.ogg" /> <file src="edf/zombiespawn.png" /> <file src="get5zombiekills.png" /> <export function="createZombie" type="server"/> <export function="isPedZombie" type="server"/> </meta> And yes, the outputchatbox works.
  10. Using getRootElement() will trigger the event for all players .. function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") or 0 setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) if getElementData(killer, "Zombie kills") == 5 then triggerClientEvent ( killer,"achievement", killer ) end end Now this is my client side: function achiev ( ) guiCreateStaticImage( 20, 200, 100, 100, "get5zombiekills.png", true ) outputChatBox ( "test" ) end addEvent( "achievement", true ) addEventHandler( "achievement", getRootElement(), achiev ) The img still doesn't show up :l.
  11. Hmm. I tried. Can't come out.. Client function achiev ( ) guiCreateStaticImage( 20, 200, 100, 100, "get5zombiekills.png", true ) end addEvent( "achievement", true ) addEventHandler( "achievement", getRootElement(), achiev ) server function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountData(account,"Zombie kills",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) if getElementData(killer, "Zombie kills") == 5 then triggerClientEvent ( "achievement", getRootElement(), "Hello World!" ) end end Please help me.
  12. Hey all, I want to get a screen in my server side script. How can I do this? I putted this in guiCreateStaticImage( 20, 200, 100, 100, "get5zombiekills.png", false ) but it's'client side only. It has to be in my server.
  13. Oh indeed ,it was with a lower case. But still, it doesn't work. function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountData(account,"Zombie kills",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) if getElementData(attacker, "Zombie kills") == 5 then outputChatBox ("Achievement unlocked.") end end
  14. Hey all. I want that if you reach 5 zombie kills it'll say: achievement unlocked. I have this: if getElementData(attacker, "Zombie Kills") == 5 then outputChatBox ("Achievement unlocked.") Doesn't seem to work. What'wrong?
  15. Hey all. How can I make the Yakuza spawn in my script only spawnable for an ACL group? This is my spawn script: http://pastebin.com/fkBNFTKs Using this one btw: https://community.multitheftauto.com/ind ... ls&id=1152
  16. bartje01

    Moderator

    Hey all. How can I give someone modorator rights instead of full admin rights ingame?
  17. bartje01

    team help

    Thankyou, it works.
  18. bartje01

    team help

    Hey all. I was wondering how this works. I want that if you type: "strike", it'll check if you're in the strikeforce. I have this: function strike ( source ) if ( playerTeam(source) == "Strike Force")then else outputChatBox ( getPlayerName ( source ) .. " You're not in strike force" ) end addCommandHandler ( "strike", strike ) Well, it didn't work . Could someone explain me how it does work?
  19. Hey all. I´m using the zDay zombie script and I was wondering how can I show the zombie kill count of a player in tab? This is the zombie server.lua. http://pastebin.com/ueQR7KcD Could anyone please help me?
  20. bartje01

    Freezing.

    Hey guys. Everytime when I play Valhalla and I walk around my screen freezes everytime. It lags as well. My PC is good enough. Does anyone knows how to fix this?
  21. Hey guys. How can I set the interior of a zombie? It's like this now to set their locations locations = { {1676.63,-1717.06,13.54}, {1542.68,-1675,13.55}, {2179.56,-1770.89,96.36}, {2189.72,-1671.97,96.37}, {2189.72,-1671.97,96.37}, {1728.70,-1668.57,22.60} } for i,v in pairs(locations) do local zomb = createPed (v[1],v[2],v[3]) end So how to make it like {1728.70,-1668.57,22.60,interiorid} ?
×
×
  • Create New...