
Chlorek
Members-
Posts
131 -
Joined
-
Last visited
Everything posted by Chlorek
-
Distance isn't any real value. But I think 1 = about 1m =]
-
Hehe, you're right but look on comments =] there is problem about databse. This resource need custom database which must be included by adding it to settings.xml.
-
I just got new idea how to do that. So bcuz of function on client side is called from server script, I made warping ped to vehicle before triggerClientEvent so on server side =] not on called client side function.
-
Are you stupid? Do you think someone script for you gamemode for admin rank? It's a lot of work and I don't think anybody do that -,- learn lua yourself or pay for scripts =] I don't see another way.
-
Oh no, I understand... you don't know how looks my script so it's you don't understand. But it's not important now. Thanks for help, I found little trick =]
-
Yeah I know it is a way, but then I have to move a lot of my functions to another script (server side). And it'll take so much time. So there isn't any way to do that?
-
I think nothing -,- what you want bcuz I don't understand you man? #Edit I read more and I know one thing. You should add database file name to settings.xml =]
-
Yo. I have one (I think easy for you scripters) question, so is it possible to warp player to a car using client side function? IF it is please give example or function name =] thanks for help!
-
Hi all. So I scripted something and there is timer. And is there method to reset timer? Deleting and creating timer again isn't good way for me. I need reset. Anyobyd know how to do that? Is it possible
-
Oh thanks for help DarkLink! It works! I forgot about use isElement but still I don't understand why in other functions it worked
-
and this is problem. i am on mobile and i cant post error but i member it is problem at 5th line and it is couldnt destroy element (bcuz of it is destroyed). function if should detect it is destroyed but it doesnt.
-
oh no... It's not problem DarkLink =] but thanks for trying to help. PS. end is using after all if, elseif, else (one only).
-
Hi. I scripted clue script and while I was testing script I found one stupid error. Server side code: addEvent("checkClue", true) function cluetimer() if(pickupClue)then outputChatBox("Too slow! Old clue destroyed!", 255, 255, 0) destroyElement(pickupClue) else local clue = math.random(0,2) if (clue == 0) then pickupClue = createPickup (-1455.66,-102.42,6.00, 3, 1279) treasure = "I am underground in section E and near EXIT door!" outputChatBox("CLUE: " .. treasure, getRootElement(), 255, 255, 0) elseif(clue == 1) then treasure = "I have to wait for the train." pickupClue = createPickup (-1968.72,111.20,27.69, 3, 1279) outputChatBox("CLUE: " .. treasure, getRootElement(), 255, 255, 0) elseif(clue == 2) then treasure = "Mount Chiliad!" pickupClue = createPickup (-1996.9760742188,-1563.7082519531,85.77880859375, 3, 1279) outputChatBox("CLUE: " .. treasure, getRootElement(), 255, 255, 0) end end end setTimer(cluetimer, 60000 , 0) function takeclue(takeplayer) if(source == pickupClue)then --cancelEvent() destroyElement(pickupClue) local moneyclue = math.random(1000,80000) givePlayerMoney (takeplayer, moneyclue) local playerName = getPlayerName(takeplayer) treasure = "Clue will be placed soon!" outputChatBox ("You got the clue and have earned $" .. moneyclue .. "!", takeplayer, 0, 255, 0) outputChatBox (playerName .. " found the clue and earned $" .. moneyclue .. "!", 255, 255, 0) outputChatBox ("The next clue will be placed for 10 minutes!", 255, 255, 0) end end addEventHandler ("onPickupUse", getRootElement(), takeclue) function checkClue() if not (pickupClue) then outputChatBox("CLUE: Clue will be placed soon!", source, 255, 255, 0) else local sendTreasure = tostring(treasure) outputChatBox("CLUE: " .. treasure, source, 255, 255, 0) end end addEventHandler ("checkClue", getRootElement(), checkClue) On the client side is command handler only (not important). So when I pick up pack I get money etc... but when timer run function cluetimer again it DETECT pickupClue element is created and I don't know why. My script should destroy pickup at 28th line! All other "if's" detect it is detroyed. Please help and thanks!
-
Ok. Files *.map are something like config files and you can set there what you want but your gamemode must understand it. So I am sorry but I don't know how to do that. I never tried to do that. Read CTF gamemode... maybe it helps you.
-
Maybe better make table in .lua file? Or in .xml file but simple table in .lua is easier =]
-
I think easier is make it in scripts than map files.
-
Oh man I love minecraft and this resource is just so cool for me. I think you should to continue for project
-
will, I mean is it possible to make new chat which is same as standardly chat (abilty to write cmds by using slash etc).
-
and I have one question about scripting chat: is it possible to make upper script like this it can be detected as normal chat? I think about it's detected by eg. onPlayerChat handler.
-
will brigga, is it chat which show msg for nearly players, is it not?
-
Let's learn indroduction! Then write really scripts man...
-
lol, I think nobody make these scripts for you, let's learn lua and script it yo'self!
-
addEventHandler("onNotifyPlayerReady", getRootElement(), function() local playerTeam = getPlayerTeam (source) local PVeh= getPedOccupiedVehicle(source) if ( playerTeam ) then local teamName = getTeamName(playerTeam) if teamName == "[T1]" then setVehicleColor( PVeh, color1, color2, color3, color4 ) setBlipColor(155,13,43) -- where is blip create?? add blip name be4 color code end end end)
-
But be4 I posted my fixed code I didn't see your new code