Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
local msec = 1000 -- Type mili - seconds here how much you whant. local hpC = getElementHealth (player) -- get players health local upmSec = 5000 -- type mili - seconds here of how much time you want take it make it u;. local up = 35 -- the hp should be up must be here function nameIt(player) -- function if hpC < 30 then -- checking players hp if 30 down then it will continue setTimer(setElementHealth,upmSec,3,player,up) -- it set its hp end end setTimer(nameIt,msec,0) If you meant the script then here. else-- If you meant the bug then you are talking about the health getting refiled automatically? Then post it at bugs section.
-
addEventHandler ( "onPlayerWasted", getRootElement(), function ( source ) if (getElementType( source ) == ("player")) then if ( getElementData ( source , "Group" ) =="RIOT" ) then setTimer (spawnPlayer, 1500, 1, player, 846.85522460938, -2106.7973632813, 13.618446350098, 0, getElementModel( source ), 0, 0, getPlayerTeam( source )) end end end)
-
are you sure there are no errors?
-
function RGBToHex ( red, green, blue, alpha ) if( ( red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255 ) or ( alpha and ( alpha < 0 or alpha > 255 ) ) ) then return nil end if ( alpha ) then return string.format ( "#%.2X%.2X%.2X%.2X", red, green, blue, alpha ) else return string.format ( "#%.2X%.2X%.2X", red, green, blue ) end end addEventHandler ( "onPlayerChat", root, function ( message, messageType ) if ( messageType == 2 ) then cancelEvent ( ) local team = getPlayerTeam ( source ) if ( team ) then local r, g, b = getTeamColor ( team ) local hexCode = RGBToHex ( r, g, b ) local name = getPlayerName ( source ) outputChatBox ( hexCode .. name .. "#FFFFFF: " .. message, root, 255, 255, 255, true ) end end )
-
Any errors ? And what are you trying to do?
-
local screenX, screenY = guiGetScreenSize() local skinID = getElementModel(localPlayer) guiCreateStaticImage( screenX*0.8505 , screenY*0.0915, 104, 104, "img\" .. tostring(skinID) .. ".png" ) Try this. If there are errors please post..
-
+ remove root from addEventHandler .. it should be source.
-
local screenX, screenY = guiGetScreenSize() local skinID = getElementModel(localPlayer) addEventHandler("onClientRender",root,function() dxDrawImage(screenX*0.8505 , screenY*0.0915, 104, 104, "img\" .. skinID .. ".png") end) Lol.. A typo its \ not /... Maybe i am wrong not sure.
-
Mostly everything is copied. Who will buy it?
-
I know. Some of the new servers will only use it i think and there will be less players because of GTA V . GTA V is rushing up with people.. So maybe its not.
-
Thanks fixed. Soon going to add 2nd tut.
-
-- server exports['scoreboard']:scoreboardSetColumnPriority( "name" , 2 , root ) exports['scoreboard']:scoreboardAddColumn( "id" , root , 20, "id" , 1 ) You forget one argument of serverSetColumnPriority
-
function changeVis() local state = guiGetVisible(yourGUIName) guiSetVisible(yourGUIName,not state) end setTimer(changeVis,30000,0)
-
local cars = { } function createCar () local car = createVehicle(411,0,0,14) outputChatBox("TRUEm",thePlayer) table.insert(cars,car,car) end function destroyit() for k,v in ipairs(cars) do if isElement(v) then destroyElement(v) cars = { } end end end addCommandHandler("make",createCar) addCommandHandler("destroy",destroyIt) Sorry IIYAMA if you think i copied from your code. Not sure if it works.
-
I will post it tomorrow. I am going to sleep atm.
-
omg... Table will store info when someone will create group with /creategroup. CHECK YOUR SKYPE/
-
We aren't gonna script for you. Make it yourself or download from community.
-
When i saw first time I also din't. But i think tables or account data can help you alot.
-
function ifIsTeam () if isPlayerInTeam( source, "Police" ) then local wanted = getPlayerWantedLevel(thePlayer) if wanted < 6 then setPlayerWantedLevel ( thePlayer, 0 ) end end end setTimer(ifIsTeam,50,ifIsTeam)
-
See my . It will check for police team players every 50ms and if he has wanted level it will be set to 0 .
-
local chat = true function chatDis(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#E3E8B7The chat has been disabled by "..getPlayerName(thePlayer)..".",root,255, 255, 255, true) chat = false end end addCommandHandler("chatoff", chatDis) function chatEn(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#E3E8B7The chat has been enabled by "..getPlayerName(thePlayer)..".",root,255, 255, 255, true) chat = true end end addCommandHandler("chaton",chatEn) function onChat(message,messageType) if messageType == 0 or messageType == 2 and chat == false then cancelEvent() end end end addEventHandler("onPlayerChat", root, onChat)
-
function ifIsTeam () if isPlayerInTeam( source, "Police" ) then local wanted = getPlayerWantedLevel(thePlayer) if wanted < 6 and > 0 then setPlayerWantedLevel ( thePlayer, 0 ) end end end setTimer(ifIsTeam,50,ifIsTeam)
-
local chat = true function chatDis(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#E3E8B7The chat has been disabled by "..getPlayerName(thePlayer)..".",root,255, 255, 255, true) chat = false end end addCommandHandler("chatoff", chatDis) function chatEn(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#E3E8B7The chat has been enabled by "..getPlayerName(thePlayer)..".",root,255, 255, 255, true) chat = true end end addCommandHandler("chaton",chatEn) function onChat(message,messageType) if messageType == 0 or messageType == 2 then if (chat == false) then cancelEvent() end end end addEventHandler("onPlayerChat", root, onChat)