
1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
It's hard search? --> HERE But you need add more country.
-
setElementData( player, "blood", 99999999999999999999999 ) setElementData( player, "bleeding", 0) setElementData( player, "brokenbone", false)
-
Doesn't work. when i use /n nothing.
-
Hello, why in this my code doesn't work callRemote? function n () local server = "LOL" callRemote ( "ip", getResourceName(getThisResource()), "outputChatBoxRemote", server.." is good server "..getPlayerCount().."", type, server ) end addCommandHandler("n", n) WARNING: Bad argument @ "callRemote" [Expected function at artument 4, got string, LOL is good server 1"]
-
Wrong section use here --> Here
-
Really good job!
-
spawner = createMarker (268.06826782227, 1361.6530761719, 9.5859375, "cylinder", 5.0, 243, 241, 13 ) function theSpawner() if spawner == source then local team = getPlayerTeam(source) if team == "PatrolWorker" then triggerClientEvent("jobSpawner", root) else outputChatBox("You must be a Patrol Worker to use this marker") end end end addEventHandler("onMarkerHit", getRootElement(), spawner, theSpawner)
-
Use math.random givePlayerMoney ( player, math.random(Amount)) or local mymarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit( hitElement, matchingDimension, player ) givePlayerMoney(player, 50) end addEventHandler("onMarkerHit", mymarker , MarkerHit )
-
What? i don't want own mute i want this what i say.
-
lel good job!
-
I wrote to the PM so look there
-
math.floor But i think math.floor is: 16.66666667 --> 16
-
Test :# function d (cmd) outputChatBox("Player "..source.." --> "..cmd.."", getRootElement(), 255, 255, 255, true) end addEventHandler("onPlayerCommand", getRootElement(), d) The source of this event is the player who tried to execute a command no your script is wrong but thanks i fixed. function d (cmd) local f = getPlayerName(source) outputChatBox("Player "..f.." --> "..cmd.."", getRootElement(), 255, 255, 255, true) end addEventHandler("onPlayerCommand", getRootElement(), d)
-
Hello i created this script but i have 1 error can anyone fix this? or i must define "cmd"? function d (player, cmd) outputChatBox("Player "..player.." --> "..cmd.."", getRootElement(), 255, 255, 255, true) end addEventHandler("onPlayerCommand", getRootElement(), d) ERROR: attempt to concatenate local "cmd" (a nil value)
-
Thanks works but when i added 2nd addEventHandler not work and when i have hex code in nick i'am not kicked Firewall = { [ 'PlayerName' ] = 'SerialPlayer', [ 'TEST' ] = '9C9F3B55D9D7BB7135FF274D3BF444E4', [ 'Name2' ] = 'Serial', } function kick ( ) for Nick,Serial in pairs ( Firewall ) do if getPlayerName ( source ) == Nick and getPlayerSerial ( source ) ~= Serial then kickPlayer ( source, "Reason: !" ) end end end addEventHandler ( 'onPlayerJoin', getRootElement(), kick) addEventHandler ( 'onPlayerChangeNick', getRootElement(), kick)
-
thanks but not work ._. 0 errors 0 warnings
-
Hello, i copied and edited code from wiki but not work can anyone help me? Firewall = { [ 'PlayerName' ] = 'SerialPlayer', [ 'Name1' ] = 'Serial', [ 'Name2' ] = 'Serial', } addEventHandler ( 'onPlayerJoin', getRootElement ( ), function ( _, source ) local Serial = Firewall[getPlayerName(source)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then kickPlayer ( source, "..." ) end end end )
-
Not. Now it works is that when a player gets mute so gets 1 ttt and when I give him so unmute gets 1 ttt .. and also I want this: When a player gets mute so one gets ttt and when I give him unmute so nothing will happen only when you receive mute so gets 1 ttt
-
i mean this omg -________________________- function ttt () setElementData(source, "ttt", getElementData(source, "ttt") + 1) end addEventHandler("onPlayerMute", getRootElement(), ttt) this work but when i unmuted player he get too 1x ttt and i want only when player muted so i know this is wrong but i want this if addEventHandler("onPlayerUnmute", getRootElement(), ttt) then cancelEvent() so i must use? removeEventHandler