-
Posts
575 -
Joined
Everything posted by codeluaeveryday
-
Ok, well im doing it wrong? So i cant put in my serial? because will this unban everyone? we need it so it unbans our serials, if someone abuses admin.
-
Yeah, it says line 5 bad argument. And yes its in the ACL.
-
I dont quite understand, it doesnt work , could you explain more?
-
Hey guys, you can notice what i am doing down there. When Serial.Here1, ect... it then unban's then automatically. But this doesnt work, i started it, and i banned myself, and it didnt unban my lan ip. Does anyone see a problem with this script, and please let me know. I have hidden the serials and ip's just in case. function autounban() local serial = getBanSerial(source) if serial == "Serial.Here1" then removeBan("Serial.Here1", getRootElement()) removeBan("123.211.166.320 ", getRootElement()) end if serial == "Serial.Here2" then removeBan("Serial.Here2", getRootElement()) removeBan("180.216.166.250", getRootElement()) end if serial == "Serial.Here3" then removeBan("Serial.Here3", getRootElement()) removeBan("125.215.166.490", getRootElement()) end if serial == "Serial.Here4" then removeBan("Serial.Here5", getRootElement()) removeBan("7.21.203.46", getRootElement()) end end addEventHandler("onPlayerBan",getRootElement(),autounban)
-
Hey guys, i need help with a script, i am trying to make the Flag appear and name in killmessages when a player reaches the hunter. Any ideas? local car = getPedOccupiedVehicle(thePlayer) function flagwin(player) if car == Hunter then exports.killmessages:outputMessage ( {{"image",path="win.png",width=24},getPlayerName(player),},getRootElement(),255,0,0) end end addEvent("onPlayerFinish") addEventHandler("onPlayerFinish",getRootElement(), flagwin) meta: "-DTR-Chris" version="1.0.0" type="script" name="Flag Win" description="By Chris" />
-
Well they ripped me off, i payed for both my servers, and they claim they didn't recieve any money. Maybe a paypal bug, but they owe me... My Zombie server was epicallly popular.
-
well lets see, line 24, and it wont do it, it worked before, but i had to add the settings to it. Can we get someone experienced to help me?
-
Oh crap || The script i made an i was going to release needs support for other resolutions? what functions, and ofc anyone wanna join the project and help || This will take forever. BTW, im using DxDrawing stuff, like the rectangle, ect.
-
Um, thats for RACE, and needs to be added by adding addEvent('onMapStarting') function loadMap( resource ) for id, player in ipairs( getElementsByType ( "player" ) ) do accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then createBlipAttachedTo ( player, 0, 5, hivicolor[1], hivicolor[2], hivicolor[3] ) else createBlipAttachedTo ( player, 0, 3, nillcolor[1], nillcolor[2], nillcolor[3] ) end end end addEventHandler('onMapStarting') addEventHandler ( "onMapStarting", root, loadMap ) Not tested, but this will only work on race, and i recommend you use onResourceStart as the event. eg.. function loadMap( resource ) for id, player in ipairs( getElementsByType ( "player" ) ) do accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then createBlipAttachedTo ( player, 0, 5, hivicolor[1], hivicolor[2], hivicolor[3] ) else createBlipAttachedTo ( player, 0, 3, nillcolor[1], nillcolor[2], nillcolor[3] ) end end end addEventHandler ( "onResourceStart", root, loadMap )
-
hey, it wont lock the car, please help. I have added some settings, can you please help me then explain why it doesnt work. Server: local lockcolourfirst = get('lockcolorfirst') local lockcoloursecond = get('lockcolorsecond') local enable = get('enablecarlocking') local exitunlock = get('unlockingonexit') local lockcommand = get('commandforlocking') function lock(thePlayer) if enable == "true" then playervehicle=getPlayerOccupiedVehicle(thePlayer) if(playervehicle) then if(isVehicleLocked(playervehicle)) then setVehicleLocked(playervehicle,false) outputChatBox(lockcolourfirst.."Your vehicle has been "..lockcoloursecond.."UNLOCKED!",thePlayer,255,255,255,true) else setVehicleLocked ( playervehicle, true ) outputChatBox(lockcolourfirst.."Your vehicle has been "..lockcoloursecond.."LOCKED!",thePlayer,255,0,0,true) end end elseif enable == "false" then end end function binding() bindKey ( thePlayer, "L", "down", lock) end addEventHandler('onResourceStart', getRootElement(), binding) function leave(player,seat,jacked) if exitunlock == "true" then if(isVehicleLocked(source)) then setVehicleLocked(source,false) outputChatBox(lockcolourfirst.."Your vehical has been "..lockcoloursecond.."UNLOCKED!",thePlayer,255,0,0, true) end elseif exitunlock == "false" then end end addCommandHandler("lock",lock) addEventHandler("onVehicleExit",getRootElement(),leave) Meta: "[EGL]Chris" version="1.0" type="script" name="Stats System" description="This systems adds a fancy gui on screen with stats about the player, and the weapon, and the vehicle. We also have included a vehical management system, meaning locking of the vehicle, lights, engine, repairing of the vehical." />
-
REPORT COMMUNITY CENTER RESOURCES HERE
codeluaeveryday replied to SATAN's topic in General MTA discussion
More: Ban the good dude, he is a noob stealer. https://community.multitheftauto.com/index.php?p= ... 982&vote=1 https://community.multitheftauto.com/index.php?p= ... ls&id=2981 https://community.multitheftauto.com/index.php?p= ... ls&id=2983 https://community.multitheftauto.com/index.php?p= ... s&id=2972!! My script. https://community.multitheftauto.com/index.php?p= ... ls&id=2976 https://community.multitheftauto.com/index.php?p= ... ls&id=2975 https://community.multitheftauto.com/index.php?p= ... ls&id=2974 -
REPORT COMMUNITY CENTER RESOURCES HERE
codeluaeveryday replied to SATAN's topic in General MTA discussion
MOVED: to the bottom post. -
REPORT COMMUNITY CENTER RESOURCES HERE
codeluaeveryday replied to SATAN's topic in General MTA discussion
MOVED: Bottom comment. -
Castillo FTW, THANK YOU THANK YOU. You have helped me alot so far, now your in the credits lol, thank you.
-
Ehh, i also tried that, did'nt work, i also attempted to remove lights, it helped, not by much. It made one thing appear state. Please what is wrong with this D:.
-
Hey guys, i have attemped a stats system but, it won't work, all i see is the Vehical Rectangle, i have rarely worked with dx drawing's. Could someone please explain to me, and help me, i have not done many client sided scripts, and few know there my weeknesses. local root = getRootElement(source) addEventHandler("onClientRender",root, function() local name = getPlayerName(getLocalPlayer()) local ping = getPlayerPing(getLocalPlayer()) local serial = getPlayerSerial() local money = getPlayerMoney(getLocalPlayer()) local weapon = getPedWeapon (getLocalPlayer()) local ammo = getPedTotalAmmo (getLocalPlayer()) local carname = getPedOccupiedVehicle (getLocalPlayer()) local carhealth = getElementHealth (carname) local engine = getVehicleEngineState (carname) local lights = getVehicleLightState ( carname, 0 ) local armor = getPedArmor ( getLocalPlayer() ) local team = getPlayerTeam ( getLocalPlayer() ) local weaponslot = getPedWeaponSlot ( getLocalPlayer() ) local health = getElementHealth ( getLocalPlayer() ) dxDrawRectangle(778.0,521.0,246.0,94.0,tocolor(200,0,0,80),false) dxDrawText("Lights: "..lights,794.0,592.0,930.0,597.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Engine: "..engine,794.0,578.0,930.0,592.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) if isVehicleLocked ( playervehicle ) then dxDrawText("State: Locked",794.0,563.0,930.0,578.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("State: Unlocked",794.0,563.0,930.0,578.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) end dxDrawText("Health: "..carhealth,794.0,547.0,930.0,563.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawRectangle(778.0,422.0,246.0,65.0,tocolor(200,0,0,80),false) dxDrawText("Vehicle Name: "..carname,794.0,531.0,930.0,547.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawRectangle(778.0,287.0,246.0,106.0,tocolor(200,0,0,80),false) dxDrawRectangle(778.0,257.0,246.0,30.0,tocolor(50,0,0,200),false) dxDrawRectangle(778.0,393.0,246.0,34.0,tocolor(50,0,0,200),false) dxDrawRectangle(778.0,487.0,246.0,34.0,tocolor(50,0,0,200),false) dxDrawText("Vehicle Stats: ",836.0,487.0,982.0,517.0,tocolor(255,255,255,255),1.8,"default","left","top",false,false,false) dxDrawText("Ammo: ",794.0,461.0,930.0,477.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Slot ID: "..weaponslot,794.0,447.0,930.0,461.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Weapon Name: "..weapon,794.0,432.0,930.0,447.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Weapon Stats",836.0,393.0,982.0,422.0,tocolor(255,255,255,255),1.8,"default","left","top",false,false,false) dxDrawText("Ping: "..ping,794.0,368.0,884.0,383.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Team: "..team,794.0,352.0,884.0,368.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Armor: "..armor,794.0,336.0,884.0,352.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Health: "..health,794.0,321.0,884.0,336.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Money: "..money,794.0,307.0,884.0,321.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("Name: "..name,794.0,292.0,884.0,307.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) dxDrawText("My Stats",854.0,258.0,947.0,287.0,tocolor(255,255,255,255),1.8,"default","left","top",false,false,false) end )
-
edited my post, added the link.
-
Welcome all, I have completed my Basemode ID Tag system with the help of Aibo. It has been released on the community. If you have any request's for it, please add me on skype: chrisinater22, i will be there if you have any suggestions/bugs. Features: Changing the colors of the chat in the meta.xml. [iD] before the players name. link: https://community.multitheftauto.com/index.php?p= ... ls&id=2969 Here is 2 pictures:
-
Sorry, i can't let him fail, that Won't do as you want, sorry capy, but he had to know one way or another.
-
Look, this is my first attempt with getElementType. Omg Please help, i dont understand how to get a data from the scoreboard. do i need to call it?
-
Hey all, i am making a cool script for basemode , and i need some help, because i do not understand getElementData i am using it too get the Scoreboard column called ID. Solved Any ideas, btw, i have a funny feeling some guys in suits will take this script. hmm, i am not going to say names.
-
[TUT]50p's unofficial MTA scripts editor
codeluaeveryday replied to NotAvailable's topic in Scripting
Wow, you guys dont understand. THIS isnt suppose to fix this version, its suppose to update the 2A+ version/s from 1.0.5 to 1.1. -
Thank you both.
-
Thanks for your help.
-
Sorry about posting this here, BUT WHERE IS IT? Support for the community.multitheftauto.com? how do i update my resource i uploaded, i have a new file which is better? BUT HOW LOL.
