Jump to content

Klesh

Members
  • Posts

    306
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Klesh

  1. Klesh

    showGui

    I resolve the problem for my own, Thanks to all.
  2. Klesh

    showGui

    I press F7, the Gui no Open, where is the problem?
  3. Klesh

    showGui

    Hi community, i have the following problem: The GUI dont show. Here is the code: Client-Side ocalPlayer = getlocalPlayer () addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), outputChatBox("Resource Cash System Started, Press F1 To open GUI.",0,255,0) outputChatBox("Author: Klesh",0,255,0) userPanelWindow = guiCreateWindow(380,277,290,82,"Player Cash",false) Money_lab = guiCreateLabel(17,32,46,24,"Money :",false,playerMoneyLabel) guiLabelSetColor(Money_lab,0,255,0) playerMoneyLabel = guiCreateLabel(75,33,199,18,"\"\"",false,playerMoneyLabel) guiLabelSetColor(money_lab2,255,0,0) function onresourceStart () bindkey ("F7", "down", showUserPanelWindow) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () getVisible = guiGetVisible (userPanelWindow) if (getVisible == true) then guiSetVisible (userPanelWindow, false) showCursor (false) end if (GetVisible == false) then guiGetVisible (userPanelWindow) showcursor (true) local PlayerMoney = getPlayerMoney(source) guiSetText ( playerMoneyLabel, " [ " .. playerMoney .. " ]" ) end end
  4. To the community of MultiTheftAuto i must to announce this server: ERU #1 Deathmatch and Destruccion Derby Race, What have this server? 1- Ghostmode voting pressing 1. 2- Ghost Driver Record: What means that? That means when you make a Top Hunter Time in Position 1, your data is being saved, this is too see if the top 1 is hack or only a pro. 3- Top Hunter Time, pressing F5 you can see who has the best record getting the hunter, and don't worry in this server any Deathmatch Map can get a Top Hunter Time. 4- Top Cash, Top Wins and Top Hunter, That allows a GUI to see who have most wins, hunters or cash pressing /th /tw /tc. Note: In top hunter is only getting top 1. 5- Shop- In this shop you can buy anything, headlights colors of the car, you can your stats, you can buy skins and maps. Note: The map can buy with /bm [MapName] 6- Flip, Roll and Spin. Flip: Means when you type for example /flip 1000 you can lose the money or win x2 in this you win 2000 as max, and the Spin the same but x 30 for example spin 1000 win 75000. Join IP : 209.236.123.36:22003
  5. You must look the mtaserver.conf, in directory server\mods\deathmatch check at the line 125 is this : <resource src="admin" startup="1" protected="0"/> The register/login is in admin resource, if the register not works its because the admin resource is not activated.
  6. You must to give to the resource admin rights, adding in acl group admin.
  7. Klesh

    Friendly Fire

    Yes i will test the code. Thanks for your help.
  8. When you are replacing a car, only can replace txd no dff and you cant create another model in MTA because all models are complete, only in San Andreas normal can do or not but in MTA can create anoher car model.
  9. We need for what is this script,i mean for do what and we need to know too what not work to help you!
  10. Klesh

    Friendly Fire

    Citizens = createTeam(text,r,g,b) [S.T.A.R.S] = createTeam(text,r,g,b) Private Corp = createTeam(text,r,g,b) Girls = createTeam(text,r,g,b) setTeamFriendlyFire(citizens,false) setTeamFriendlyFire([S.T.A.R.S],false) setTeamFriendlyFire(Private Corp,false) setTeamFriendlyFire(Girls,false) end) There is one, but the problem is how to enable for all friendly fire nobody cant kill another.
  11. Klesh

    Friendly Fire

    Like i say before only i try with the script of wiki because is the tutorial -.-. Im using CDM for it.
  12. Klesh

    First person

    If you mean like a first shooter game click here.
  13. Klesh

    Friendly Fire

    Team Code is in Cdm.map Code deleted.
  14. Klesh

    Friendly Fire

    Sorry for Spam. The code is the same from wiki. addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do setTeamFriendlyFire ( theTeam, false ) end end) Teams created by a gamemode. Citizens Private Corp. [s.T.A.R.S] Girls Tested, doesn t works!
  15. Klesh

    Friendly Fire

    The Friendly cant be true right, becuase this desactivates, i try all but nothing work, some help about how can disable friendly for all, any player cant damage another one. Thanks for any help.
  16. Klesh

    Banner

    Thanks dude, you help me.
  17. Klesh

    Friendly Fire

    Some help? Because in the wiki, the script no works.
  18. The solution about that is making a register login panel, with this the 2 second sam can register with the account name sam2 and ingame nick is Sam but the cant play in the same time becuase the nick is alredy choseen. I will give you this link, is the solution for your problem: https://community.multitheftauto.com/index.php?p=resources&s=details&id=617
  19. The way you can check if the player is loged or not, with the admin panel : Open your Admin panel, click on the player you need to know if is loged or not, see in account name and there say if is loged or not, if the player is loged says : Account Name: MTA FAN Check out .
  20. Klesh

    Banner

    Hi community, i have 3 servers but i dont know the html code or something to put my banners on signature, any help? Thanks.
  21. Klesh

    Friendly Fire

    You mean a script with this? friendlyfire.lua? i was do, but not works and the are created in the server with a gamemode. Thanks for any help.
  22. So what is wrong, why the money no appears?
  23. Any help? what is wrong?
  24. Not Works, i change it to server-side stil no works, the money no appears.
  25. Hi community i make this script, that shows money on scoreboard but not show: Here my code: localPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Money") setElementData(localPlayer,"Money",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addColumns) outputChatBox("Score Money System Reloaded",255,105,0) outputChatBox("Author: AlienBoss",255,105,0) local playermoney = getPlayerMoney(source) addEventeHandler("onResourceStart",getRootElement(getThisResource() ), function() addEventHandler("onClientPlayerJoin",getRootElement(), updateplayerList) addEventHandler("onClientPlayerLogin",getRootElement(), updateplayerList) addEventHandler("onClientPlayerSpawn",getRootElement() , updateplayerList) populateGridList() end ) client-side Thanks for any help. client-side
×
×
  • Create New...