Resto
Members-
Posts
155 -
Joined
-
Last visited
Everything posted by Resto
-
ERROR: [gameplay]/test/test.lua:14: attempt to compare nil with number
-
ERROR: Loading script failed: [gameplay]/lvl-system/lvlsystem.lua:8: "then" expected near "="
-
hello, its my old script and how or where i must add setTimer for 5 seconds lvl refreshed. And when anyone lvl up in chat "Resto" lvl up [lvl]". And when anyone lvl up he get reward 2,000$ for lvl up. Please can anyone help me? exports.scoreboard:addScoreboardColumn('Level') addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local zombiekills = getAccountData(account,"Zombie kills") if (zombiekills >= 0) and (zombiekills <= 50) then setAccountData ( account, "Level", "1" ) elseif (zombiekills >= 50) and (zombiekills <= 150) then setAccountData ( account, "Level", "2" ) end end ) addEventHandler("onPlayerSpawn",root, function () local cuenta = getPlayerAccount(source) if isGuestAccount(cuenta) then return end local lvl = getAccountData(cuenta,"Level") if lvl then setElementData(source,"Level", lvl ) end end )
-
LOCK please. I find my old script.
-
Can anyone help me how to install?
-
Ok i find Castillo "exp_system" but how to install? i used /refresh and /start exp_system but nothing.. and i have default slothbot.
-
Omg i know where is scripts . And there is not this script.. And this script had 5-10 zombie servers..
-
Look screens on link. and look on my screen this i need..
-
Where i can find this or where i can this download? if this wrong section sorry..
-
hello, please why this script not work? vipcar1 = { [520] = true } vipcar2 = { [411] = true } function lockPrivate( player, seat, jacked ) local accName = getAccountName ( getPlayerAccount ( player ) ) if not ( isObjectInACLGroup ( "user."..accName, aclGetGroup ( "VIP" ) ) ) and ( vipcar1[getElementModel(source)] ) or ( vipcar2[getElementModel(source)] )then cancelEvent() outputChatBox ("Dont have VIP !!!", player, 255, 255, 255, true ) end end addEventHandler ( "onVehicleStartEnter", root, lockPrivate )
-
And it could not be done please so that no "Admin", "SuperModerator", "Moderator" but just so you allow it in the admin panel and it will no longer be able to use .. Now I got it in the Script .. if isObjectInACLGroup ("user." .. accountname, aclGetGroup ("Admin")) then
-
However, but how do I put it there?
-
I just wanted to edit this ... for _, aclGroups in ipairs ( { 'Admin', 'SuperModerator' } ) do if isObjectInACLGroup ( ... , aclGetGroup ( aclGroups ) ) then -- Do something else -- Do something else end end
-
Omg .. this is so difficult to do this in order to be able to give only Admin, SuperModerator??? I do not want no other positions only that .. function fixall(tPlayer, tCommand) if (eventName == "startFixAllPlayers") then tPlayer = source end accountname = getAccountName (getPlayerAccount(tPlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ("Admin") ) then if isPedInVehicle(tPlayer) then for i,player in ipairs(getElementsByType("player")) do fixVehicle(getPedOccupiedVehicle(player)) end setTimer(outputChatBox,50,1,"Bla Bla Bla",getRootElement(),171,205,239,true) end else outputChatBox("Bla Bla Bla",source, 255, 0, 0, true) end end addEvent("startFixAllPlayers", true) addEventHandler("startFixAllPlayers", getRootElement(), fixall) function restoreAllBlood_CMD(thePlayer, theCMD) if (eventName == "startBloodAllPlayers") then thePlayer = source end local accountName = getAccountName(getPlayerAccount(thePlayer)) if(accountName) then if(isObjectInACLGroup("user."..accountName, aclGetGroup("Admin"))) then local alivePlayers = getAlivePlayers(); if(alivePlayers ~= false) then for key, value in ipairs(alivePlayers) do setElementData(value, "blood", 12000); outputChatBox("Bla Bla Bla", value, 0, 255, 0); end end else outputChatBox("Bla Bla Bla", thePlayer, 255, 0, 0); end end end addEvent("startBloodAllPlayers", true) addEventHandler("startBloodAllPlayers", getRootElement(), restoreAllBlood_CMD)
-
But it does not work ..
-
However, when the post went .. why just do not adjust it can also give Admin SuperModerator? ...
-
What governs you want? ... Now it's not the point ..
-
However, in order to be able to use Admin and SuperModerator
-
Please help somebody that's the last thing I want P.S: Sorry for Tripple Post
