
Xeno
Members-
Posts
728 -
Joined
-
Last visited
Everything posted by Xeno
-
This is meant to add +10 onto a scoreboard collumn. It WORKS but only when I relog, And I don't know why... Here is my script: function addPlayerZombieXP(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieXP = getAccountData(account,"Experience points") if not zombieXP then setAccountData(account,"Experience points",0) end setAccountData(account,"Experience points",tonumber(zombieXP)+10) end addEventHandler("onZombieWasted", getRootElement(), addPlayerZombieXP) I would appreciate if you could help me
-
Considering your playing a zombies server, you proberly won't need it(You have to shoot them in the head to kill them) But use this: if ( bodypart == 9 ) then -- That means if the body part hit is the head then
-
function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"EXP") if not zombieKills then setAccountData(account,"EXP",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+10) end addEventHandler("onZombieWasted",getRootElement(), addPlayerZombieKills) This adds 10 EXP every kill.
-
Did you try and restart the server?
-
I think you can change the colour of the sky in the admin panel.
-
Type "ase" into the console I think if it says Master server list queries:1 it means people can see it... But I'm not sure. Have you tried browsing for the server yourself to see if you can find it?
-
With that example Fatal, if I had a blank webpage with "hello" on it, it would show up in the Memo as "Hello"??
-
1) I THINK you can type "openports" in CONSOLE, and some stuff shows up.. 2) Go to MTA San Andreas 1.2\server\mods\deathmatch\acl.xml and find the admin section: <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="user.tomdrum11"></object> </group> As you can see, I put in the middle of the admin section, do the same but with your username, like this <object name="user.[usernamehere]"></object> OR if that does not work, type in "start admin" on console. Hope I helped.
-
Seems to complicated for me... I'll just update the GUI every once and a while... Thanks guys!
-
Could I make a command which loads the webpage instead?
-
Would it be possible to get text from a website and insert it on a memo automatically? So say if I had a webpage with just text on it, and edited it a bit, it would automatically change the memo ingame. Is this possible? If so, please tell me how ;3 Thanks, Xeno.
-
You did it the wrong way around ;3 function yakuza() local account = getPlayerAccount ( thePlayer ) if account == "yakuza" then respawnVehicle ( vehicle1 ) else outputChatBox ( "You cant make this use", thePlayer, 255, 200, 0 ) end end addCommandHandler("respawnmycar", yakuza)
-
I think he wants to create a gun range script where you shoot things?
-
function killMe (thePlayer) if (thePlayer) then setElementFrozen (thePlayer, true) setTimer (killPed, 10000, 1, thePlayer) outputChatBox("You will be killed in 10 seconds.", thePlayer, 255, 0, 0) end end addCommandHandler ("kill", killMe)
-
Thanks ^^ Its the first thing i've put on the community ;3
-
Try following the instructions I gave :3
-
Well how would I transfer "zombieKills" to clientside?
-
Well how would I transfer "zombieKills" to clientside?
-
Is there a function that Is cliented sided that does the same as getAccountData? LIke how would I get something like this... local zombieKills = getAccountData(account,"Zombie kills") Please help, thanks, Xeno.
-
function handling ( player ) local isVeh = isPedInVehicle( player ) if isVeh then local veh = getPedOccupiedVehicle ( player ) local handling = getVehicleHandling(veh) setVehicleHandling(veh, "mass", 1600) setVehicleHandling(veh, "turnMass", 3921.3) setVehicleHandling(veh, "dragCoeff", 1.8 ) setVehicleHandling(veh, "centerOfMass", { 0, -0.4, 0 } ) setVehicleHandling(veh, "percentSubmerged", 75) setVehicleHandling(veh, "tractionMultiplier", 0.75) setVehicleHandling(veh, "tractionLoss", 0.85) setVehicleHandling(veh, "tractionBias", 0.52) setVehicleHandling(veh, "numberOfGears", 5) setVehicleHandling(veh, "maxVelocity", 200) setVehicleHandling(veh, "engineAcceleration", 8.8 ) setVehicleHandling(veh, "engineInertia", 10) setVehicleHandling(veh, "driveType", "rwd") setVehicleHandling(veh, "engineType", "petrol") setVehicleHandling(veh, "brakeDeceleration", 10) setVehicleHandling(veh, "brakeBias", 0.53) setVehicleHandling(veh, "ABS", 0) setVehicleHandling(veh, "steeringLock", 35) setVehicleHandling(veh, "suspensionForceLevel", 1.3) setVehicleHandling(veh, "suspensionDamping", 0.12) setVehicleHandling(veh, "suspensionHighSpeedDamping", 0) setVehicleHandling(veh, "suspensionUpperLimit", 0.28 ) setVehicleHandling(veh, "suspensionLowerLimit", -0.12) setVehicleHandling(veh, "suspensionFrontRearBias", 0.38 ) setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0) setVehicleHandling(veh, "seatOffsetDistance", 0.2) setVehicleHandling(veh, "collisionDamageMultiplier", 0.24) setVehicleHandling(veh, "monetary", 25000) setVehicleHandling(veh, "modelFlags", 0x40000000) setVehicleHandling(veh, "handlingFlags", 0x10200008 ) setVehicleHandling(veh, "headLight", 0) setVehicleHandling(veh, "tailLight", 1) setVehicleHandling(veh, "animGroup", 0) end end addEventHandler ( "onResourceStart", getRootElement ( ), handling )
-
This is how I execute it: function checkRank(player) local account = getPlayerAccount(player) if (account and isGuestAccount(account)) then setElementData(player, "Rank","Login") local kills = tonumber(getElementData(player,"Zombie kills")) elseif (kills >= 25 and kills <= 49) then setElementData(player, "Rank","Rookie") end end addEventHandler("onPlayerLogout", getRootElement(), checkRank) addEventHandler("onPlayerLogin", getRootElement(), checkRank) addEventHandler("onPlayerJoin", getRootElement(), checkRank) I ran into some problems: 12:attempted to compare number with nil and... Bad argument at getPlayerAccount