-
Posts
306 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Klesh
-
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
-
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
-
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.
-
You must to give to the resource admin rights, adding in acl group admin.
-
Yes i will test the code. Thanks for your help.
-
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.
-
We need for what is this script,i mean for do what and we need to know too what not work to help you!
-
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.
-
Like i say before only i try with the script of wiki because is the tutorial -.-. Im using CDM for it.
-
If you mean like a first shooter game click here.
-
Team Code is in Cdm.map Code deleted.
-
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!
-
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.
-
Some help? Because in the wiki, the script no works.
-
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
-
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 .
-
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.
-
So what is wrong, why the money no appears?
-
Not Works, i change it to server-side stil no works, the money no appears.
-
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
