#Paper
Members-
Posts
568 -
Joined
-
Last visited
Everything posted by #Paper
-
in console this errors was showed and admin panel don't work...
-
This is MY afk killer, but don't work and no error is showed: Server-Side: local MaxAfkTime = 10 local AfkKickReason = "Afk for "..MaxAfkTime .." Seconds" local afkKeys = {"arrow_l", "arrow_u", "arrow_r", "arrow_d", "w", "s", "d", "a" } local afkTimer = nil local afkTime = 25000 -- 25 Seconds function onAfkEvent(afkTime) if client then setElementData(client , "idletime", tonumber(getElementData(client , "idletime")+tonumber(afkTime))) afkTime = AfkTime/1000 outputChatBox (getPlayerName(client).." is "..afkTime .." Seconds Afk!", getRootElement()) if afkTime > MaxAfkTime then setElementData(client, "idletime", 0) kickPed ( client, "Afk-Script", AfkKickReason ) end end end addEvent( "onAfkEvent", true ) addEventHandler( "onAfkEvent", getRootElement(), onAfkEvent) function pushKey( key, state ) if ( state == "down" ) then if isTimer(afkTime) then killTimer(afkTime) end end end function AfkKeys() setElementData(getLocalPlayer(), "idletime", 0) for key,keyNames in pairs(afkKeys) do bindKey(keynames, "both", pushKey) end end addEventHandler ( "onPlayerJoin", getRootElement(), AfkKeys) Client-Side: local afkTime = 25000 local afkKeys = {"arrow_l", "arrow_u", "arrow_r", "arrow_d", "w", "s", "d", "a" } local img = guiCreateStaticImage(378,283,402,163,"images/warning.png",false) function showimg( ) if afkTime then guiCreateStaticImage(378,283,402,163,"images/warning.png",false) end if afkKeys then guiSetVisible ( img , false ) end end
-
I've tried to make HunterTopTimes: addEvent('onPlayerFinish') addEventHandler('onPlayerFinish', g_Root, function(rank, time) if g_SToptimesManager then g_SToptimesManager:playerFinished( source, time) end end ) to: addEvent('onPlayerPickUpRacePickup') addEventHandler('onPlayerPickUpRacePickup', g_Root, function(pickupID, pickupType, vehicleModel, rank, time) if vehicleModel == 425 then if g_SToptimesManager then g_SToptimesManager:playerFinished( source, time) end end end ) What's the problem? I should modify another lua default script?
-
Exists an event to intercept when a player vote a map (/rate 1-10)? Is there a function like "getMapRatings" or something?
-
this is the script for make the tag name in race gm, how i can generate the tagname's color random? local r,g,b = 255,127,36 dxDrawText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE,"default", "center", "bottom", false, false, false )
-
I disabled the votemanager, says "... has started a new vote" appears, but you can not vote
-
ok, it isn't my, i've saw in wiki to try to fix, but don't work... <_< Can you help me one times?
-
what's wrong in this other script? (-.-") local info = mapInfo.modename function hunterAlert(mapInfo, pickupID, pickupType, vehicleModel) if info == "Destruction derby" then if pickupType == "vehiclechange" then if vehicleModel == 425 then outputChatBox( "#FF0000WARNING: "..getPlayerName(source).." #FF0000has got hunter!", getRootElement(), 25, 125, 225, true ) end end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),hunterAlert))
-
i should set this sript in server-side?
-
What's wrong in this script? local localPlayerName = getPlayerName(getLocalPlayer()) function afk () outputChatBox ( "" ..localPlayerName.. "#9933ffin now Away From Keyboard!", true ) end addCommandHandler("afk", afk)
-
How i can make a command: /thx And in chatbox out this: AcitanoX say thanks to
-
The race starter pack show this error: It's normaly?
-
i would like to made all res from web server (altervista domain) but give me error
-
yup, you only need to do that when runnig server from home yes, but the problem... idk to solve! T.T
