-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
Remember: when you use the function to take the money in the client side will be taking fake money in a way that if you want to be taking money to fully use the function to take the money in the server-side this was only just alert anyway your option .
-
You mean you want to show the gui using command? maybe like that ^ : function open() guiSetVisible(WND,not guiGetVisible(WND)) showCursor(guiGetVisible(WND)) guiSetInputEnabled(guiGetVisible(WND)) end addCommandHandler("chatop", open) Wnd = You,re Window chatop = The command
-
getPlayerFromTeam = ?? you mean = getPlayerTeamFrom ?
-
Towncivilian problem has returned again!!You can see this image and also play became boring-_-"I need help again Thanks! http://store2.up-00.com/Nov12/Itq21989.png
-
Check the message i've sent to you . Update : Problem Sloved ^ Thanks By SolidSnake! .
-
I forgot that I transfer file format that works, but there is an error I can not see the player name What is the problem?Just i can see the drift data ! if you need the server side i will send it "Pm" . http://store2.up-00.com/Nov12/81N20750.png
-
the gridlist is not working -_-" ? i can,t see any thing WTP ? Pic : http://store2.up-00.com/Nov12/h6H19991.png @ SolidSnake if you need the server side i will send it "PM" ^^ .
-
Hello , i have a problem here in my top "Drift" SetItemText it,s not working just the window -_-" here you are the client side : GUIEditor = { gridlist = {}, label = {}, } function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end TopDriftWnd = guiCreateWindow(0, 0, 0, 0, "==[ Top 25 Drift ]==", false) centerWindow(TopDriftWnd) guiWindowSetMovable(TopDriftWnd, false) guiWindowSetSizable(TopDriftWnd, false) guiSetAlpha(TopDriftWnd, 1.00) guiSetProperty(TopDriftWnd, "CaptionColour", "FFFFFC00") GUIEditor.gridlist[1] = guiCreateGridList(9, 26, 351, 288, false, TopDriftWnd) guiGridListAddColumn(GUIEditor.gridlist[1], "Rank", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "PlayerName", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "BestDrift", 0.3) function open() guiSetVisible(TopDriftWnd,not guiGetVisible(TopDriftWnd)) showCursor(guiGetVisible(TopDriftWnd)) guiSetInputEnabled(guiGetVisible(TopDriftWnd)) getTopDrift() end bindKey("F6","down",open) function getTopDrift() triggerServerEvent("onGetDrift",localPlayer) end addEvent("onSetOnGrid",true) addEventHandler("onSetOnGrid",root, function (drift) guiGridListClear(GUIEditor.gridlist[1]) for i,top in ipairs(drift) do local num = guiGridListGetRowCount(GUIEditor.gridlist[1]) if ( num <= 26 ) then local row = guiGridListAddRow(GUIEditor.gridlist[1]) local num = guiGridListGetRowCount(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,num,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,top.name,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,3,top.dir,false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,0,255,0) guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,255,255,0) end end end ) Some help ^^ if you need the server side i will send it "PM" thanks ! .
-
SERVER SIDE --For getting player gamemode ( idea from NPG ): local gamemodes = { [1] = "Play", [2] = "Fallout", [3] = "Race" } --will return mode number ( shown in array as indexes ) or 0 if arguments are invalid function getPlayerGamemode ( player ) if ( isElement ( player ) and getElementType ( player ) == 'player' ) then return getElementData ( player, "Fallout" ); end return 0 end --will return true if player gamemode was set sucessfully, false otherwise function setPlayerGamemode ( player, Fallout ) if ( ( isElement ( player ) and getElementType ( player ) == 'player' ) and ( type ( Fallout ) == 'number' ) ) then return setElementData ( player, "Fallout", Fallout ); end end --For gamemode start: --Call the above function to set player element data "mode" and then add the event and a handler for it in a core resource and in the function of the event check if the mode exists, if it does, set player element data "mode" to the new mode. You should then add "onPlayerGamemodeJoin" / "onClientPlayerGamemodeJoin" in your gamemode resource and check if the player ( can be source, if you specify it in trigger functions ) is the local player addEvent ( "onPlayerGamemodeJoin", true ); addEventHandler ( "onPlayerGamemodeJoin", root, function ( Fallout ) for k,v in ipairs ( getElementsByType ( "player" ) ) do if ( v == source ) then if ( Fallout == 2 ) then --load things for source end end end end ) --NOTE: firstly you should set element data "mode" to 0 when players joins the server, --when the player joins a gamemode u set his element data to the mode he just entered CLIENT side if (source == GUIEditor_Button[1]) then triggerServerEvent ("onPlayerGamemodeJoin", getLocalPlayer()) guiSetVisible(GUIEditor_Window[1],false) showCursor (false) If an error can you give me an example of Fallout All this wrong!Where is the data and you should to edit the gamemode as what i say in my post . A Simple examplie : for FallOut : Open Main File For You,re GameMode that one you want to create it ^^ . then this is what should to do : GUIEditor = { staticimage = {}} FallOut = guiCreateStaticImage(0.0.0, 0, "Fallout.png", false ) setElementData(localPlayer, "FallOut", false) -- Complete function will not do for you everything then open the file when the player start play and the file in fallout gammode is : freecamclient.lua You should to edit it like that ^^ : addEventHandler("onClientResourceStart", resourceRoot, freecamLoad) function activateFreeCam(status) if getElementData(localPlayer, "Race") or getElementData(localPlayer, "Play") then return end if getElementData(localPlayer, "FallOut") then spectateActivated = status end if status == false then setCameraTarget(localPlayer) end end i hope you understand what i mean and you should to complete script yourself .
-
We are waiting for you no problem ( : .
-
Seen in the server I think that's enough .
-
I know, People fail to give enough information these days I really do not know why!!And how he wants us to help?Damn! .
-
بدري من عمرك الموضوع قديم
-
Yes I think this should tell us more when it wants to happen this?Will he make the team?Or not?This is enough to answer for his question after answering all my questions .
-
Are you telling me to not speak? Anyway What i said in my first post is the answer to your first question. Sorry but I was angry at someone I'm sorry ^ ^Any way i answered the second question a correct answer! Sorry again
-
He was asking about how he can set player in team skin and i think he create the team before ^^ and use setElementModel to set player skin and i know what i give him to use so dont speake much . and he is asking about How can i set a team skin?
-
I also have another problem, when I login for the first time, it auto logs me out, so I have to login again. ^ +1
-
You know. IDK How You create threads ask for help?We help you!But you want everything ready! That's impossible!
-
first : which gamemode you are using? Secondly : use getTeamFromName , SetElementModel
-
So Script One By You,re Self .
-
You mean this : https://community.multitheftauto.com/index.php?p=resources&s=details&id=1514
-
Wrong! open freecamclient.lua then do that : addEventHandler("onClientResourceStart", resourceRoot, freecamLoad) function activateFreeCam(status) if getElementData(localPlayer, "Race") or getElementData(localPlayer, "Play") then return end if getElementData(localPlayer, "FallOut") then spectateActivated = status end if status == false then setCameraTarget(localPlayer) end end And i hope you setElementData From the Main File The File To Play GameModes OnClick. And You Should to trigger the data .