
DjMixCuma
Members-
Posts
83 -
Joined
-
Last visited
Everything posted by DjMixCuma
-
When i spawn i want to use /test, but i cant because table is false default in this construction of code: local can = {} function start() if can.Command == true then setTimer(stop, 5000, 1) can.Command = false outputChatBox("Can!", 255, 255, 255, true) else outputChatBox("Can't!", 255, 255, 255, true) end end function stop() can.Command = true outputChatBox("Now Can Again!", 255, 255, 255, true) end addCommandHandler("test", start) but when i using this: local can = {} addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() can.Command = true end function start() if can.Command == true then setTimer(stop, 5000, 1) can.Command = false outputChatBox("Can!", 255, 255, 255, true) else outputChatBox("Can't!", 255, 255, 255, true) end end function stop() can.Command = true outputChatBox("Now Can Again!", 255, 255, 255, true) end addCommandHandler("test", start) command not working, but when i use this: local can = {} function start() can.Command = true if can.Command == true then setTimer(stop, 5000, 1) can.Command = false outputChatBox("Can!", 255, 255, 255, true) else outputChatBox("Can't!", 255, 255, 255, true) end end function stop() can.Command = true outputChatBox("Now Can Again!", 255, 255, 255, true) end addCommandHandler("test", start) i can use command infinitely
-
okey working but how to on start resource give permission to start command? my code: local can = {} addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() can.Command = true end function start() if can.Command == true then setTimer(stop, 5000, 1) can.Command = false outputChatBox("Can!", 255, 255, 255, true) else outputChatBox("Can't!", 255, 255, 255, true) end end function stop() can.Command = true outputChatBox("Now Can Again!", 255, 255, 255, true) end addCommandHandler("test", start)
-
sorry my bad i'm noob in lua. thanks for help i will write later, if it working.
-
solidsnake i want set this for example: local can = {} if can[source].command == true then -- all players can use this command else -- no all players can use this command so how to set can[source].command (for example) for all players??
-
Hello! how to create Variable for all players? please any example, thanks ) i want create this if variable == 1 then --they can't else --they can end
-
HELLO I have strange error. This code works in 100% in Windows but when i upload it to linux server i see error in console: and resource not starting local spawns = { {2486.6191, -1661.2399, 13.3359, 359.8272}, {2000.5002, 1527.7755, 14.6223, 359.7770}, {-2405.5828, -596.4693, 132.6484, 308.9108}, {-688.1240, 946.5006, 13.0313, 359.6285} } addEventHandler("onPlayerJoin", getRootElement(), function() local X, Y, Z, Rot = unpack(spawns[math.random(#spawns)]) spawnPlayer(source, X, Y, Z, Rot) setCameraTarget(source, source) end)
-
addEventHandler("onPlayerSpawn", getRootElement(), function() setElementModel(source, math.random(312)) end) WORKING !!
-
@REFRESH Please help me because i dont know how to create this PLEASE
-
Also I ran into this idea, but how will the id of the Skin, which is not programmed (san andreas) it will crash player.
-
Hello, how to create random skins on player join??
-
How to script an immortality (player) ??
-
How to fix this script, because 0 errors in debugscript, but text not showing on ped?? please help me
-
THIS WILL WORK??? distance = 40 addCommandHandler("opis", opispokaz) function opispokaz(source, message) local player = getElementsByType("player") message = string.gsub(message, "#%x%x%x%x%x%x", "") for k,gracz in pairs(player) do if isElementOnScreen(gracz) then local x,y,z=getElementPosition(gracz) local X,Y=getScreenFromWorldPosition(x,y,z) local px,py,pz=getElementPosition(getLocalPlayer()) local dystans=getDistanceBetweenPoints3D(x,y,z,px,py,pz) if dystans < distance then dxDrawText(" ".. message .." ")",X,Y) end end end end end addEventHandler ( "onClientRender", getRootElement (), opispokaz)
-
Hello, how to create this: i dont have an ideas to create this. Can you give me example code for this????
-
Hello, any one know where i can download this shader: @UP: dust spots on screen wet streets: and damage: WHERE I CAN DOWNLOAD THIS SHADERS? PLEASE HELP ME OR HOW TO CREATE THIS WONDERFUL SHADERS
-
REFRESH!!
-
Oh sorry, my bad. @GTX: Yes, i want send message to admins online.
-
Repair error in this function.
-
When i set from 0 to 1, is 0 errors, but message not sending to admins. ://
-
TAPL i have table "Account" local Account = {}
-
I have big trouble, with my LUA Code. function SendMessageToAdmins(color1, color2, color3, msg) for i = 0, maxSlots - 1 do if Account[i] and Account[i].Admin >= 1 or Account[i] and Account[i].GameMaster >= 1 then SendPlayerMessage(i, color1, color2, color3, string.format("%s", msg)) end end end Here is the error: if Account[i] and Account[i].Admin >= 1 or Account[i] and Account[i].GameMaster >= 1 then Content of error: How to fix that? Code not forom MTA:SA !!!!!!!!
-
Hello 1. How to upper first char and 2. how to move sentence to next line (after 50 chars)? 1. DJMixCuma: djmixcuma UPPER: DJMixCuma: Djmixcuma 2. DJMixCuma: Hello i'm djmixcuma and i'm djmixcuma... ...and i'm djmixcuma and i'm djmixcuma ( DJMixCuma )
-
Ok thx but when i write .Hello i see: DJMixCuma says: Hello DJMixCuma: Hello How to disable "DJMixCuma", not "DJMixCuma says": ??