Xeno
Members-
Posts
728 -
Joined
-
Last visited
Everything posted by Xeno
-
Please help poor Xeno and his struggle for life, just donate 2 pound s a month to Xeno Charity and receive this free Xeno toy!
-
Send me all your hard earned cash. pls
-
Official staff? Many people make up rumours, it happens all the time.
-
lol. I sold a couple of model replacements for 15 pounds. Although it was a rip off, this resource does not cost 5 dollars by any means.
-
Its down. Probably will be up soon. How did it look "hacked"?
-
Try and set a timer on the setPlayerTeam.
-
You have not created a new team for the Logged in people.
-
You can't use onLogin as function name - sorry for the weird function name i have, i couldn't think of anything! function eatmyshit() local thePlayer = getPlayerFromName(getPlayerName(source)) outputChatBox("Hello!", thePlayer) end addEventHandler("onPlayerLogin", getRootElement(), eatmyshit)
-
I had this problem a long time ago, you have to get the team by name and then set team. function createAllTeamOnStart ( ) AllTeam = createTeam ( "All", 0, 255, 0 ) for index, player in ipairs ( getElementsByType ( "player" ) ) do if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Everyone" ) ) then team = getTeamFromName("All") setPlayerTeam ( player, team ) end end end addEventHandler ( "onResourceStart", resourceRoot, createAllTeamOnStart ) function setAllTeam ( ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Everyone" ) ) then team = getTeamFromName("All") setPlayerTeam ( source, team ) end end addEventHandler ( "onPlayerLogin", getRootElement(), setAllTeam ) addEventHandler ( "onPlayerJoin", getRootElement(), setAllTeam ) addEventHandler ( "onPlayerSpawn", getRootElement(), setAllTeam ) addEventHandler ( "onClientLoginLoaded", getRootElement(), setAllTeam ) addEventHandler ( "onRequestLogin", getRootElement(), setAllTeam ) addEventHandler ( "onRequestAutologin", getRootElement(), setAllTeam )
-
onPlayerWasted spawnPlayer
-
Well if he's getting players...
-
Plus making an RPG is extremely risky, theres 20% chance that you will actually open. I've seen tons of RPG that have failed and fallen flat on their faces. Because servers have faces.
-
addEventHandler('onClientResourceStart', resourceRoot, function() restoreAllWorldModels() removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) createObject ( 17521, 2502.1000976563,-1714.0999755859,16.299999237061, 0, 0, 0 ) outputChatBox ( "Matam Is Starting.") setTimer ( customObject, 200, 1) setOcclusionsEnabled(false) end ) function customObject () local dff = engineLoadDFF('files/pawnshp_lae2.dff', 0) engineReplaceModel(dff, 17521) local txd = engineLoadTXD('files/laeast2_lod.txd', 0) engineReplaceModel(txd, 17521) local txd2 = engineLoadTXD('files/lae2newtempbx.txd', 0) engineReplaceModel(txd2, 17521) engineSetModelLODDistance(17521, 500) end
-
Use tags. function MyPosition(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end guiSetText ( gui["Otherl"], "text" ) end
-
Show us your script you create the vehicles with. You possibly have a line deleteFile("nameofcarfile") which removes the .dff from the players files.
-
I'm not sure if that was aimed at me or Ram.1.It takes MONTHS to make a RPG server. ( I don't mean the basics, I mean EVERYTHING done ) 2.If it was aimed at me, I have a job.
-
Nothing is free. Pay me 500 quid and its yours.
-
exports.scoreboard:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",root, function (killer) givePlayerMoney(killer,100) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountData(account,"Zombie kills",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) end I used this in my old script, but it works only for the DXscoreboard.
-
It won't work because the gate is joint with the rest of the fences.
-
I had this problem yesterday, change the command. And no joke, I actually made this yeterday: function pedcreation(player) local x,y,z = getElementPosition(player) local xr,xy,xz = getElementRotation(player) peds = createPed(288,x,y,z-1,xr,xy,xz) setElementRotation(peds, xr,xy,xz) end addCommandHandler("piepie",pedcreation) But, its because createped is a function name, so you can't use it as a command. Oh, and thePlayer is not in the function ( ) ' s
-
That was easier than I thought. Thank you very much. I may need some help later with this so I'll just reply to this topic.
-
Yes, I understand this. So, I need worldX, worldY, worldZ, function onClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) createMarker(worldX,etc) end addEventHandler("onClientClick", getRootElement(),onClick) Something like this? I don't even know how to use the stuff inside the brackets () because I've never been taught how.
-
How do I get the position clicked with onClientClick? Like if I use the mouse to click on the ground somewhere, how do I get them coods?
-
Noobest question ever, but this doesn't work, and it should, but doesn't. Why does it not work? function updateCamera () local x, y, z = getElementPosition ( getLocalPlayer() ) setCameraMatrix ( x, y, z + 50, x, y, z ) end addCommandHandler("test", updateCamera) Thanks, Xeno.