Sisqo0
Members-
Posts
78 -
Joined
-
Last visited
Everything posted by Sisqo0
-
All the code should be in server side You can use in the command function string.find(msg,"bad word")
-
"onPlayerChat" This event detects local chat
-
Remove the ip in <serverip> in "mtaserver.conf" and keep it default "auto"
-
I think you mean this --Server side function bindkeyonlogin() bindKey (source,"k","down", function(player,key,state) if getControlState ( player,"fire") then toggleControl ( player, "fire",false) else toggleControl ( player, "fire",true) end ) end addEventHandler ("onPlayerLogin",getRootElement(),bindkeyonlogin)
-
Did you try to do in the same order that i said ?? veh = createVehicle( 520 ,2047.46155, -2494.08105 , 14.5,0,0,90) setElementHealth(veh, 10000 ) warpPedIntoVehicle(source, veh)
-
Maybe it's the maximum health for this vehicle.. I'm not sure but to make sure.. Make it If you got the same health(205%) then you knew why but will be better if you set the health before warp Ped
-
I want to know something.. When someone does a script and finds something hard to do for him to make his script works well.. I know we have to ask here for help but if he found what he was looking for in a free resource.. Does that consider stealing? For example: -if he wanted to use a table function in a certain way but doesn't know how & he found a script using that table in the same way he wanted. So if he used it. Consider stealing? Btw he used just the way not the script
-
--Edit those --Client --Server
-
setTimer(givePlayerMoney(player, amount), 1000*60*60*24*5,0)
-
I made Car lock system script in dayz and it works fine but it depends on that each car has a certain number and needs a certain key to lock/unlock & all that is ok but to make those keys appear in inventory i need to add like more than 200 lines ( because i have more 200 cars in server and each one has a certain num ).. The name of each key is "Vehicle Name - Its num" so how can i do it. Is there something like math.random(1,200) but it make all nums between them valid not just a random one. And even if there's something like that.. Will it work in inventory?
-
You can add at the end of client side script code fileDelete("client-script-name.Lua")
-
@majqq sorry if iam annoying you i could disable selected items if i selected 2 rows of different gridlists but is there any way to make it if i click on any gridlist rows, the last clicked on the other gridlist would be removed and what i clicked on stay selected only
-
Thank you so much
-
@IIYAMA Thanks for your reply, I made 2 gridlist before but i got a problem too with selection mode of each gridlist. I could select row of player gridlist and row of vehicle at the same time. Do you know how to avoid that?
-
local GuiWarpElementToMenuElements = {} local function createWarpElementToMenu(SelectedElement) if WarpElementTomenuopen then closeWarpElementToMenu() return end WarpElementTomenuopen = true guiSetInputMode("no_binds_when_editing") if (getElementType(SelectedElement) == "vehicle") then GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiCreateWindow(0,0,350,400,"Warp "..tostring(getVehicleName(SelectedElement)).." To",false) else GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiCreateWindow(0,0,350,400,"Warp "..tostring(getPlayerName(SelectedElement)).." To",false) end WarpElementToWindow = GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements] guiWindowSetSizable(WarpElementToWindow,false) GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiCreateButton(0.06,0.93,0.4,0.05,"Select",true,WarpElementToWindow) WarpElementToSelectButton = GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements] guiSetFont(WarpElementToSelectButton, "default-bold-small") GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiCreateButton(0.54,0.93,0.4,0.05,"Cancel",true,WarpElementToWindow) WarpElementToCancelButton = GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements] guiSetFont(WarpElementToCancelButton, "default-bold-small") GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiCreateGridList (0.02,0.06,0.95,0.85,true,WarpElementToWindow ) WarpElementToGridList = GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements] GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiGridListAddColumn(WarpElementToGridList,"Player",0.475) WarpElementToPlayerGridListColumn = GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements] GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements+1] = guiGridListAddColumn(WarpElementToGridList,"Vehicle",0.475) WarpElementToVehicleGridListColumn = GuiWarpElementToMenuElements[#GuiWarpElementToMenuElements] guiGridListSetSelectionMode(WarpElementToGridList,2) for _,vehicle in ipairs (getElementsByType("vehicle")) do local WarpElementToVehicleGridListRow = guiGridListAddRow(WarpElementToGridList) guiGridListSetItemText(WarpElementToGridList,WarpElementToVehicleGridListRow,WarpElementToVehicleGridListColumn,tostring(getVehicleName(vehicle)),false,false) guiGridListSetItemData(WarpElementToGridList,WarpElementToVehicleGridListRow,WarpElementToVehicleGridListColumn,vehicle) end for _,player in ipairs (getElementsByType("player")) do local WarpElementToPlayerGridListRow = guiGridListAddRow(WarpElementToGridList) guiGridListSetItemText(WarpElementToGridList,WarpElementToPlayerGridListRow,WarpElementToPlayerGridListColumn,tostring(getPlayerName(player)),false,false) guiGridListSetItemData(WarpElementToGridList,WarpElementToPlayerGridListRow,WarpElementToPlayerGridListColumn,player) end end That's my code in client side it works perfectly but i have 1 problem i can't remove the empty rows in player column. please help
-
Yes. That's what i wanted Thank you ?
-
how to output chat in ( .log ) file i have created ?? Thanks.
-
Hello guys.. I don't know why when i got killed with knife or M136 launcher Rockets.. My screen got bugged and i see my body far and far in screen and can't move and when i reconnect i just find that i didn't get killed... How i can fix it please ??
-
Guys, i made a marker in dayz that when i get in it i got new skin in dayz and the skin worked and all things fine but when i get the new skin after 10-15 second my last skin back and my new skin has gone . how to fix that ? newskin = createMarker ( 1856.0751, 851.0827, 9.408, "cylinder", 1.5, 255, 255, 0, 170 ) function skin(hitPlayer) if getElementType(hitPlayer) == "player" then setPlayerSkin ( hitPlayer, 211 ) end end addEventHandler ( "onMarkerHit", newskin, skin )
-
I did that but when i shut down my pc.. It's gone.. How i can make it online always ?
-
is this problem or no ? the red sentence http://www.mediafire.com/view/2zsbz0m2m81aim1/Untitled.png