Jump to content

matttu

Members
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

matttu's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. matttu

    Money help

    Well, it broke like that, when I try insert the command it doesn't do anything. but I tried this way aswell, but still nothing. function createGroupForPlayer (playersource,command,...) local teamName = table.concat({...}, " ") local money = getPlayerMoney(playersource) if not isGuestAccount(getPlayerAccount(playersource)) and getElementData(playersource,"gang") == "None" then if teamName then if not isGangExisting (teamName) then addGang (teamName,getAccountName(getPlayerAccount(playersource))) setAccountData(getPlayerAccount(playersource),"gangslots",12) outputChatBox ("#FFFFFFYou successfully created your group with the name of: "..teamName..".",playersource,27, 89, 224,true) else outputChatBox ("#FFFFFFThere is a group with this name already!",playersource,27, 89, 224,true) end else outputChatBox ("#FFFFFFSyntax is /creategroup !",playersource,27, 89, 224,true) end else outputChatBox ("#FFFFFFYou are in a group already!",playersource,27, 89, 224,true) if (money > 4999) then takePlayerMoney(playersource, 5000) else return outputChatBox ("#FFFFFFYou don't have enough money to create a group! [Kill more zombies]",playersource,27, 89, 224,true) end end end addCommandHandler("creategroup",createGroupForPlayer)
  2. matttu

    Money help

    First I did this, i know it is wrong, but I didn't know where to start aswell, so I just tried this. function createGroupForPlayer (playersource,command,...) local teamName = table.concat({...}, " ") local money = getPlayerMoney(playersource) if (money > 4999) then takePlayerMoney(5000) if not isGuestAccount(getPlayerAccount(playersource)) and getElementData(playersource,"gang") == "None" then if teamName then if not isGangExisting (teamName) then addGang (teamName,getAccountName(getPlayerAccount(playersource))) setAccountData(getPlayerAccount(playersource),"gangslots",12) outputChatBox ("#FFFFFFYou successfully created your group with the name of: "..teamName..".",playersource,27, 89, 224,true) else outputChatBox ("#FFFFFFThere is a group with this name already!",playersource,27, 89, 224,true) end else outputChatBox ("#FFFFFFSyntax is /creategroup !",playersource,27, 89, 224,true) end else outputChatBox ("#FFFFFFYou are in a group already!",playersource,27, 89, 224,true) end end end addCommandHandler("creategroup",createGroupForPlayer) but it broke, so i did the second local money = getPlayerMoney(playersource) if money = 5000 then takePlayerMoney(5000) it worked, but it didn't take money. Maybe you could give me some more information about this, I don't want anyone to tell me exactly how or make this for me, I would like to start learning it and this is where I start.
  3. matttu

    Money help

    Tried alot, but nothing, I hate to say this, but i need more instructions.
  4. matttu

    Money help

    Hey community! I've got a problem with adding money for group. I want to make it so, if you want to make a group, you'll need 5000$ I just need some instructions ^^ function createGroupForPlayer (playersource,command,...) local teamName = table.concat({...}, " ") if not isGuestAccount(getPlayerAccount(playersource)) and getElementData(playersource,"gang") == "None" then if teamName then if not isGangExisting (teamName) then addGang (teamName,getAccountName(getPlayerAccount(playersource))) setAccountData(getPlayerAccount(playersource),"gangslots",12) outputChatBox ("#FFFFFFYou successfully created your group with the name of: "..teamName..".",playersource,27, 89, 224,true) else outputChatBox ("#FFFFFFThere is a group with this name already!",playersource,27, 89, 224,true) end else outputChatBox ("#FFFFFFSyntax is /creategroup !",playersource,27, 89, 224,true) end else outputChatBox ("#FFFFFFYou are in a group already!",playersource,27, 89, 224,true) end end addCommandHandler("creategroup",createGroupForPlayer)
  5. in MTA: Dayz you can't do much different from the others but what you can do, you can make scripts which other servers don't have, like making building system and shopping system, new cars and stuff, it makes gameplay cooler, but if you add to much stuff it ruins the game
  6. Hey sniper, realy awesome that you would like to revive the gamemode, also, i was the last who bought gamemode and i can tell that that there's about 10 people who own legal gamemode Wanted to ask, if i have bought the gamemode and you continue developing mta: dayz, do we have any chance to get uncompiled versions too? I think i can send proof from paypal, but if we cannot get uncompiled versions then that's okay, ill just watch how good can mta dayz go ^^ And sims if you want, i can send you the newest gm!
  7. oh... that was easy Thanks man have learned lua only 5 months and still havent learned anything about ACl, only how to add ppl and resources there, thats all, but THANK YOU :3
  8. Hey! My problem is, how to i put that VIP-s will get 10 money, I want that people in VIP acl group get 10 instead of 5, please give me some directions or some kind of help! =) Thanks! =) addEventHandler( "onZombieGetsKilled", getRootElement(), function( killer ) givePlayerMoney( killer, 5 ); end )
  9. Hey! I've made php script that if someone sends a message then php script saves it and now i need help with lua... It has to change ACL but im not the best at lua so if maybe someone wants to help me contact me please my skype is: matu.kurs I just need help with script what adds users into acl and removes them in some days.
  10. if you downloaded it from mtadayz.com then i dont think you are the person who should i help because of those as*holes who ruined the dev of the gamemode. Go pro and buy the gamemode from -L- ! -.-
  11. matttu

    timer

    refresh Item Lootasd
  12. matttu

    timer

    setTimer(refreshItemLootasd, 1800000, 1) setTimer(refreshItemLoots, 60000, 1)
  13. matttu

    timer

    So it should look like this? function refreshItemLootasd () local time = getRealTime() local hour = time.hour outputChatBox("#ff2200ATTENTION #ffffff- Item refresh in 30 minute!",getRootElement(),255,255,255,true) setTimer(refreshItemLoots, 1800000, 1) end
  14. matttu

    timer

    Hey! Im trying to show people that server gets refreshed in 30 minutes but when i change some stuff it bugs loot system this is the right one. function refreshItemLootPoints () local time = getRealTime() local hour = time.hour outputChatBox("#ff2200ATTENTION #ffffff - Item refresh in 1 minute! #FF0000 BEWARE OF MASSIVE LAG!",getRootElement(),255,255,255,true) setTimer(refreshItemLoots,60000,1) end setTimer(refreshItemLootPoints,gameplayVariables["itemrespawntimer"] ,1) This is what i've done... if maybe someone can help? =) function refreshItemLootasd () local time = getRealTime() local hour = time.hour outputChatBox("#ff2200ATTENTION #ffffff- Item refresh in 30 minute!",getRootElement(),255,255,255,true) setTimer(1800000,1) end
×
×
  • Create New...