-
Posts
1,239 -
Joined
-
Last visited
Everything posted by -.Paradox.-
-
I fixed it myself, thanks dude a lot
-
Thanks a lot it's working, one more thing, when player reconnect he is not muted anymore.
-
Now working, but when i do /task 1 Nikolai 15 it says wrong task id i tried /task 2 and /task 3 too but i get same error
-
Not working, i can't get any errors in debug or output
-
Yes and all of them are not working
-
Not working, when i do /task 1 nikolai nothing happens
-
Like this? function doTask(theClient, taskId, playername) if ( hasObjectPermissionTo ( theClient, "function.banPlayer" ) ) then if taskId then local player = getPlayerFromName(playername or "") if player then if taskId == 1 then setPlayerMuted(player, true) outputChatBox("You have been muted.",player) elseif taskId == 2 then kickPlayer ( player, theClient, "You are kicked because of cheating." ) elseif taskId == 3 then banPlayer ( player, theClient, serial, "You are banned because of hacking/abusing.", 3600 ) else outputChatBox("Wrong Task id.",player) end else outputChatBox("Could not find the player.",player) end else outputChatBox("SYNTAX: /task [id] [victim] ",player) end else outputChatBox ( "TaskID: You don't have enough permissions", theClient ) end And please i don't know how to call timer to unmute the victim, can you show me how and thanks.
-
Both are server side...
-
Yeah thanks Shall i use addCommandHandler?
-
Hello again, guys i need help to complete my task panel, i need some functions that i could use to make this: when i type /task 1 [playername] [duration] it suppose to mute the player /task 2 [playername] [reason] to kick the player /task 3 [playername] [reason] [duration] to ban the player Thanks for help
-
It's not a number I'm using some different names, what about Events what i should use?
-
Hello, i want to made a Class system, i want when player join give him random class from 10 classes, what i could use to do that?
-
I just set all the players stamina stats to 0
-
messages = {"test1","test2","test3","test4"} textDisplay = textCreateDisplay() textItem = textCreateTextItem(messages[math.random(#messages)], 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center") textDisplayAddText(textDisplay, textItem) setTimer(function() textItemSetText(textItem, messages[math.random(#messages)]) for _, thePlayer in ipairs(getElementsByType("player")) do if not textDisplayIsObserver(textDisplay, thePlayer) then textDisplayAddObserver(textDisplay, thePlayer) end end end, 60000, 0) setTimer( function() destroyElement(textDisplay) destroyElement(textDisplay) end , 5000, 1) Can you fix it please?
-
I fixed it thanks a lot guys
-
Thanks but it don't disappear, what's the problem?It suppose to disappear after 5seconds Edit: ah yeah sorry i forgot to tell you about that
-
this suppose to flash it local faded = false if faded then fadeCamera ( thePlayer, true ) else fadeCamera ( thePlayer, false, 1, 250, 0, 0 ) end faded = not faded
-
Hello, can somebody fix to me this? i want it to shoot every player in the game random texts every minute, thanks for help messages = {"test1","test2","test3","test4"} setTimer(function() local randomMsg = math.random(1,#messages) textDisplay = textCreateDisplay ( ) textItem = textCreateTextItem ( messages, 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) end end ,60000,1)
-
I already tried to do that in the first time, but it just crashed my exp script
-
I can post it here, and i made new ranks images so i wont repeat them, anyway here is the code Server addEventHandler ( 'onPlayerJoin', root, function ( ) setElementData ( source, 'Rankimage', ':Class/Rank/rank_0.png' ); end ); addEventHandler ( 'onPlayerLogin', root, function( _, account ) local LV = tonumber( getAccountData( account, 'LV' ) ); if ( LV and LV > 0 ) then setElementData ( source, 'Rankimage', ':Class/Rank/rank_'..LV..'.png' ); elseif ( LV == 50 )then setElementData ( source, 'Rankimage', ':Class/Rank/rank_50.png' ); else setElementData ( source, 'Rankimage', ':Class/Rank/rank_0.png' ); end end ); Client addEventHandler ( "onClientRender", root, function ( ) local Rankimage = getElementData ( localPlayer, "Rankimage" ) if ( Rankicons and fileExists ( Rankimage ) ) then dxDrawImage(1173, 265, 36, 41, Rankimage, 0, 0, 0, tocolor(255, 255, 255, 255), true) end end )