-
Posts
460 -
Joined
-
Last visited
Everything posted by Mefisto_PL
-
Not the same... Check this line: 12 In tim260 version is: funtion settcar(player, cmd, who) In my version is: function settcar(player, cmd, who) It's a error, but small. I make it often.
-
1) Can anybody write code to replace paintjobs? 2) I want to make a script to refill health with command and setTimer... local dataname = "health.cooldown" local commandname = "ulecz" local note_restored = "Health refull." function giveFullHealth(player, cmd) local timer = getElementData(player) if not timer then outputChatBox(note_restored, player, 0, 255, 0, false) setElementData(player, true) setTimer(setElementHealth(player, 100), 1000, 1 ) end end addCommandHandler(commandname, giveFullHealth) 3) I want to make script to set Nametag Colors for acl rights. function nametagColorChange ( thePlayer ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "HeadAdmin" ) ) then setPlayerNametagColor ( thePlayer, 250, 0, 0 ) end end addEventHandler ( "onPlayerJoin", getRootElement(), nametagColorChange )
-
function check ( player, seat, jacked ) if getElementData(source, "private") then if getElementData(source, "owner") == getAccountName(getPlayerAccount(player)) then else cancelEvent() outputChatBox("This is not your car!", player) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), check ) function settcar(player, cmd, who) local who = getPlayerFromName(who) local co = getPedOccupiedVehicle(who) setElementData(co, "private", true) setElementData(co, "owner", getPlayerName(who)) outputChatBox("Now this car owner is "..getPlayerName(who), player) end addCommandHandler("setowner", settcar)
-
Ohh I'm a stupid i fix that (Was {'CPW') )
-
Hmm.. I replaced something in JR10 version and not working addCommandHandler ( "vote" , function ( player , cmd ) local pollDidStart = exports.votemanager:startPoll { title='Event', percentage=65, timeout=10, allowchange=true, visibleTo=getRootElement(), [1]={'WWK'}, [2]={'KSW'}, [3]={'CPW'), [4]={'Ganiany'}, } end)
-
How can I make GUI grid list to show when I click the name of item messages in Memo. I want make a names of items and messages in file.xml. So can anybody help me? :
-
Spawn with CJ skin and bugged
-
I have not working script that save skin and money.. How to fix that? function joinHandler ( ) spawnPlayer (source, -1969.2669677734, 137.71185302734, 30, 0, skin, 0) fadeCamera (source, true) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin" , getRootElement ( ) , joinHandler ) function spawnWasted(player, skin) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 180, skin, 0) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source, getElementModel(source)) end ) function greetPlayer ( ) outputChatBox ( "Witaj na Polskim Serwerze Zabawy stworzonym przez Mefisto_PL !" , source, 0, 159, 255 ) end addEventHandler ( "onPlayerLogin", getRootElement(), greetPlayer ) function onPlayerQuit() local playerAccount = getPlayerAccount(source) if (playerAccount) then local playerMoney = getPlayerMoney(source) local playerSkin = getPlayerSkin(source) setAccountData(playerAccount, "money", playerMoney) setAccountData(playerAccount, "skin", playerSkin) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) function onPlayerLogin() local playerAccount = getPlayerAccount(source) if (playerAccount) then local playerMoney = getAccountData(playerAccount, "money") local playerSkin = getAccountData(playerAccount, "skin") if (playerMoney, playerSkin) then setPlayerMoney(source, playerMoney) setPlayerSkin(source, playerSkin) end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin)
-
Ehh.. So I can't do anything to fix that?
-
I don't change and yes. On hamachi.
-
Yes, any errors and warnings.
-
Yea I fix that , next you write it And Thanks :*
-
Warning: Loading script failed: AllInOne\joinquit.lua:23: unexpected symbol near 'then'
-
I have this script, if you can fix this I will be very lucky addEventHandler('onClientPlayerJoin', root, function() outputChatBox('>> ' .. getPlayerName(source) .. ' dołącza do gry !', 0, 159, 255) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('>> ' .. oldNick .. ' zmienił nick na ' .. newNick, 0, 159, 255) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('>> ' .. getPlayerName(source) .. ' opuścił serwer [' .. reason .. ']', 0, 159, 255) end ) reasontable = { ["Kicked"] = "Wyrzucony", ["Quit"] = "Wyszedł", ["Banned"] = "Zbanowany", ["Bad Connection"] = "Błąd połaczenia", ["Timed Out"] = "Rozłączono" }
-
I want to make a custom reasons to join/quit script. For example: Mefisto_PL has left the game [Go Away]
-
Working ^^ Thanks :>
-
On my server it isn't working.. Debugscript 3: "WARNING: AllInOne\spawn.lua:16 bad argument @ 'getElementModel'
-
On my server it isn't working.. Why?
-
I would like the script after entering the server gave last used skin and after the death of a player getting a last used skin. :< function joinHandler ( ) spawnPlayer (source, -1969.2669677734, 137.71185302734, 30, 0, math.random (0,288), 0, 0) fadeCamera (source, true) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin" , getRootElement ( ) , joinHandler ) function spawnWasted(player) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 180, 0, 0) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end ) function greetPlayer ( ) outputChatBox ( "Witaj na Polskim Serwerze Zabawy stworzonym przez Mefisto_PL !" , source, 0, 159, 255 ) end addEventHandler ( "onPlayerLogin", getRootElement(), greetPlayer )
