
Xeno
Members-
Posts
728 -
Joined
-
Last visited
Everything posted by Xeno
-
Ahh, It was because I set a timer on spawn player. Thanks for all your help again.
-
Nevermind. It was not working when I set it on the admin panel for some reason... Thanks for the help
-
I tested both of yours and they don't work... Does it matter if I set the stat VAI admin panel?
-
Thanks for the replys. But neither work... I have logout disabled, could that have anything to do with it?
-
By the way, this looks awesome.
-
Yours works Evil. Do I have to add every weapon manually?
-
function flipVeh( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) setElementRotation(theVehicle,0,0,0) takePlayerMoney(500) end addCommandHandler("flip",flipVeh)
-
function flipVeh( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) setElementRotation(theVehicle,0,0,0) end addCommandHandler("flip",flipVeh)
-
I'm not having a login panel in my server though. Ill just leave it and let them login manually with /login ect.. Thanks for the help guys
-
So how am I meant to enable auto login? Do I have to make a script for it?
-
Does Accounts.xml still exist? Because I can't seem to find it in my MTA folder.
-
Thanks for the replies guys. It doesn't work and I dont get any errors.
-
How would I go about saving weapon stats? I know I have to use setAccountData and getAccountData, but i Don't know what to put. I would appreciate it if you could give me some help. Xeno
-
I know that, but which lookAtX do I change to rotate the camera? None seem to work.
-
I STILL can't seem to rotate the camera? I'm trying to move it so it faces the base, but whatever Arguement I change, it does not seem to rotate! Help me please: setCameraMatrix (source, 73.6,1763,48, 1468.388671875, -918.42474365234,0,0,0, 25000,25000) PS What i'm trying to do is rotate the camera.
-
function lvlingUp() dxDrawText ( "You have leveled up!", 200,screenHeight - 400, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 2, "pricedown" ) dxDrawText ( "You have leveled up!", 200, screenHeight - 402, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 2, "pricedown" ) end function triggerLvl() addEventHandler("onClientRender",rootElement, lvlingUp) setSoundVolume(sound, 0.5) local sound = playSound("lvl.mp3", false) setTimer(dxDrawReLvl,3000,1) end addEvent("triggerLvl", true) --addEventHandler("onClientResourceStart", getRootElement(), triggerLvl) function dxDrawReLvl() removeEventHandler("onClientRender", rootElement, lvlingUp) end addEventHandler("triggerLvl", getLocalPlayer(), triggerLvl)
-
Ok, so I'm setting up ranks for this script, and it checks to see if a player has a certain ammount of kills every kill, if the player has 50 kills, it triggers a server event, but it doesn't seem to work... ( not triggering the server event..) heres the script: function lvlKills(player, killer) local rank = getElementData(player, "Rank") if (player and getElementType(player) == "player") then local kills = tonumber(getElementData(player,"Zombie kills")) if (not kills) then setElementData(player, "Zombie kills", 0) kills = 0 end if (kills == 50) then triggerClientEvent(killer,"triggerLvl",killer) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 150) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 300) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 600) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kill == 800) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 1200) then triggerClientEvent(killer,"triggerLvl",killer) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) end end end Please help me, Xeno
-
People will not just make this for you, you have to learn LUA scripting mate.
-
Not wise to show people a picture of your CMD... Did you try typing in 127.0.0.1?
-
It says I don't exist when I type in the command.