
JasperRieken
Members-
Posts
97 -
Joined
-
Last visited
Everything posted by JasperRieken
-
Due, this function moves you away it doesn't allow the other function to activate that's why i need the timer to work
-
Because there is another function wich has to be activated first
-
And how would i fix this function?
-
So what must i edit because i really cant see it
-
function warpGarage(player) setPedArmor(player, 100) setElementPosition(player, 1526.19,-1459.14,10.5) setElementHealth(player, 100) outputChatBox("* You have been set to the Garage Crew", player,0,255,255,false) end setTimer(warpGarage, 2000) addEventHandler("onMarkerHit",marker,warpGarage) It doesn't seem to work the timer
-
This is what i've got neither of the chatbox things work function redirect(player) redirectPlayer(player, "94.23.38.142", "22006") outputChatBox ("*#000000 [ #FF0000"..getPlayerName(player) .." #000000]#FFFF00 Has turning to the Freeroam Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end addCommandHandler("freeroam",redirect) setTimer( function() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/freeroam #000000] #00bbccTo connect to The#000000: #ff0000Freeroam #00bbccServer #ffff00 @~",root, 255, 255, 255, true ) end , 60000, 0) function redirect1(player) redirectPlayer(player, "94.23.38.142", "22003") outputChatBox ("*#000000 [ #FF0000"..getPlayerName(player) .." #000000]#FFFF00 Has turning to the Zombie Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end addCommandHandler("zombie",redirect1) setTimer( function() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",root, 255, 255, 255, true ) end , 60000, 0)
-
it's not the color codes i used this one before copied it
-
What about this part? 7.function chat() 8. outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",getRootElement(), 255, 255, 255, true ) 9.end 10.setTimer ( chat, 60000, 0)
-
Thanks, this one works only the chat thing doesn't both of the outputchatbox don't work function redirect1(player) redirectPlayer(player, "94.23.38.142", "22003") outputChatBox ("*#000000 [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has turning to the Zombie Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end addCommandHandler("zombie",redirect1) function chat() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",getRootElement(), 255, 255, 255, true ) end setTimer ( chat, 60000, 0)
-
function redirect() redirectPlayer(source, "94.23.38.142", "22006") end addCommandHandler("freeroam",redirect) That doesn't work for me
-
i did that, first it said permission denied. I added it to the acl now it sais bad argument line 4
-
function redirect() redirectPlayer(source, "94.23.38.142", tonumber(22006)) end addCommandHandler("freeroam",redirect) This doesn't seem to work
-
function joinHandler(player) setPlayerTeam(player, getTeamFromName("Freeroam Players")) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) This doesn't work
-
function warpMexican(player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then setElementPosition(player,2568.22,-1279.25,25.62) end end end setTimer(warpMexican, 10000, 0) addCommandHandler("basewarp",warpMexican) I think it's a easy thing but the timer fails
-
It just doesn't work
-
I don't know how
-
this is what i've got ServerSide: function addASecond() local serial = getPlayerSerial(player) local oldData = executeSQLSelect( "TimePlayed", "TimePlayed","serial = '" .. serial .. "'") newData = tonumber(oldData[1]["TimePlayed"]) + 1 setElementData(player,"TimePlayed",tonumber(getElementData(player,"TimePlayed"))+1) executeSQLUpdate ( "TimePlayed", "TimePlayed = '"..newData.."'","serial = '" .. serial .. "'") end addEventHandler ( "onClientRender", getRootElement(), addASecond) ClientSide: function Columns() exports.dxscoreboard:scoreboardAddColumn("TimePlayed") setElementData(localPlayer,"TimePlayed",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Columns)
-
this is what i've got ServerSide: function addASecond() local serial = getPlayerSerial(player) local oldData = executeSQLSelect( "TimePlayed", "TimePlayed","serial = '" .. serial .. "'") newData = tonumber(oldData[1]["TimePlayed"]) + 1 setElementData(player,"TimePlayed",tonumber(getElementData(player,"TimePlayed"))+1) executeSQLUpdate ( "TimePlayed", "TimePlayed = '"..newData.."'","serial = '" .. serial .. "'") end addEventHandler ( "onClientRender", getRootElement(), addASecond) ClientSide: function Columns() exports.dxscoreboard:scoreboardAddColumn("TimePlayed") setElementData(localPlayer,"TimePlayed",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Columns)
-
well the thing is it just doesn't count
-
[2011-12-23 20:55:32] SCRIPT ERROR: dxscoreboard/time_Server.lua:8: '' expected near 'end' [2011-12-23 20:55:32] WARNING: Loading script failed: dxscoreboard/time_Server.lua:8: '' expected near 'end'
-
so whats the full script
-
well i've been trying for three days can you please help me with reading what you will make i learn more because i really can't get it to work man
-
It doesn't count so it doesn't work also could you make it so after 60 mins it will say 1 hour 2 minutes