Jump to content

Brolis

Members
  • Posts

    64
  • Joined

  • Last visited

Everything posted by Brolis

  1. Hi, I would like to create dxtext or something like that rank text in my server by using if (zombiekills >= 0) and (zombiekills <= 4) then and also elseif (zombiekills >= 5) and (zombiekills <= 10) then That if zombie kills is from 0 to 4 the text i set will be showing for player, if zombie kills is from 5 to 10 it will be showing other text i want, like your rank is... I tryed to do it by myself but not successfull... Maybe someone of you guys could create for me that?
  2. ERROR: god\huh.lua:7: attempt to compare number with boolean addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local idiotkills = getAccountData(account,"Zombie kills") if (idiotkills >= 0) and (idiotkills <= 4) then setAccountData ( account, "Lolid", "Asshol" ) elseif (idiotkills >= 5) and (idiotkills <= 29) then setAccountData ( account, "Lolid", "Moran" ) elseif (idiotkills >= 30) and (idiotkills <= 79) then end end ) ) )
  3. When mobako services starts, in server console writes me: ERROR: shopsystem\server\paynspray.lua:57: table index is nil -- We need a list of random colors to assign, so let's have a look at the server's vehiclecolors.conf local file = fileOpen( "data/vehiclecolors.conf", true ) while not fileIsEOF( file ) do local line = fileReadLine( file ) if #line > 0 and line:sub( 1, 1 ) ~= "#" then local model = tonumber( gettok( line, 1, string.byte(' ') ) ) if not vehicleColors[ model ] then vehicleColors[ model ] = { } end vehicleColors[ model ][ #vehicleColors[ model ] + 1 ] = { tonumber( gettok( line, 2, string.byte(' ') ) ), tonumber( gettok( line, 3, string.byte(' ') ) ) or nil, tonumber( gettok( line, 4, string.byte(' ') ) ) or nil, tonumber( gettok( line, 5, string.byte(' ') ) ) or nil } end end fileClose( file )
  4. Hi, I am using fuel system by Alan.Alexander reedited by Mizzo_boston. And there is one mistake... When this resource starts in console me writes: WARNING: fuelsystem\s.lua:20: Bad argument @ 'createBlip' addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() local xml = xmlLoadFile("carData.xml"); local xmlNodes = xmlNodeGetChildren(xml); for i,node in ipairs(xmlNodes) do carFuel[tonumber(xmlNodeGetAttribute(node,'id'))] = tonumber(xmlNodeGetAttribute(node,'fuel')); end xmlUnloadFile(xml); local xml = xmlLoadFile("garageData.xml"); local xmlNodes = xmlNodeGetChildren(xml); for i,node in ipairs(xmlNodes) do local name = xmlNodeGetAttribute(node,'name'); local x = tonumber(xmlNodeGetAttribute(node,'x')); local y = tonumber(xmlNodeGetAttribute(node,'y')); local z = tonumber(xmlNodeGetAttribute(node,'z')); gasStationsBlip[name] = createBlip(x,y,z,51,0,0,0,0,0,0,0); local moreKids = xmlNodeGetChildren(node); gasStationsMarkers[name] = {}; for i,v in ipairs(moreKids) do local mx = tonumber(xmlNodeGetAttribute(v,'x')); local my = tonumber(xmlNodeGetAttribute(v,'y')); local mz = tonumber(xmlNodeGetAttribute(v,'z')); gasStationsMarkers[name][i] = createMarker(mx,my,mz,'corona',3,128,128,0,64); setElementData(gasStationsMarkers[name][i],'gasStation',true); end end xmlUnloadFile(xml); end )
  5. I tryed to hide ALL, but it just hide a crosshair and nothing else
  6. Not working man... Just not working...
  7. Yes I tryed... I think in MTA:SA tec9 id is set to wrong... Or .txd .dff is really broken, I'll just wait for someone, who could give me a script/resource for tec9 model change...
  8. Hi all. When I make weapon modification for tec9, I mean .dff and .txd mta crashes, so I can't even play in my server. But server doesn't shutdown after it happens me and to other, no errors... Tec9 model id 372 - only for this crappy weapon that happens... Other moded weapons are just fine and any crashing... So, could someone give me a script/resource to mod tec9 without any problems? Just to make in server tec9.txd and tec9.dff and nothing else... This resource which I am using was created by Yakuza, named "Weapons and sounds" "Replace models with new sounds and movements on shoot"...
  9. Look, it doesn't show when I am joining to a game for a while, but then I spawn it shows me again... I want to make it not visible 4ever ever! Help me guys! function hudChanger () showPlayerHudComponent ( source, "ammo", false ) -- Hide the ammo displays for the newly joined player showPlayerHudComponent ( source, "weapon", false ) -- Hide the weapon displays for the newly joined player showPlayerHudComponent ( source, "wanted", false ) -- Hide the wanted displays for the newly joined player showPlayerHudComponent ( source, "area_name", false ) showPlayerHudComponent ( source, "vehicle_name", false ) showPlayerHudComponent ( source, "health", false ) showPlayerHudComponent ( source, "money", false ) showPlayerHudComponent ( source, "clock", false ) end -- Make our hudChanger function called when the player joins addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) PS. Thanks for helping Please help me to make default hud invisible...
  10. Hi everyone, I want to ask you, how to disable hud on top, there are showing health bar, armour bar, money, weapon icons, time, how to disable that all? When I am trying to add other huds from resources of this websites, it shows me and default san andreas hud... so it's bugging everything... so, how to disable default hud on top? Thanks a lot!
  11. Hi all, I would like to ask you: Is that possible to add random spawns to author 50p spawn menu for one or other team? I tryed to add same lines like: "Army" id="287" > "222.2" y="1860.1" z="13.14" rot="91.98" /> "222.4" y="1860.5" z="13.14" rot="91.98" /> But does only spawn at first line. 50p spawn file name is spawn_locations.map Please answer to me, also if you can help me! Thanks a lot!
  12. Hi everyone again, today I would like to ask you how to create custom shop in mobako services, yes, i created a ped, red circle with a menu, but then I get in red circle and then pressing exit it makes me without ability to take a weapon I had before I entered there, just then I am trying to change weapon, no effects, can't aim, shoot, nothing, like in interiors. But listen me, I want to create shop not in interior, in default world, area51 zone... So when I leave red circle, weapons gone, only if on admin panel I freeze myself and unfreeze get weapons back. Help someone, thanks a lot!
  13. Hi again, today I would like to ask you to give me a link to script/resource or create it to me, say how to create and ect. for not allowed vehicles. Simple: I get in infernus and I have been kicked from this car with a chatboxmsg: * You are not allowed to drive this! Or, When I am trying to get in I am not get'n there just no action with a same message. Or something I just said. Please, help me someone. Thanks a lot!
  14. Error gone, but not what I wanted to. Doesn't write me a message after other message other message ... Help someone! Any suggestion?...
  15. Please, fix this code, it doesn't writes all messages, it should write that all server unused vehicles will respawn in 15secs, in 10secs in 5secs and also all vehicles were respawned! function respawn() local accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then outputChatBox("* Respawning all empty vehicles in 5sec, get to your car to keep it!") setTimer(function () local vehicles = getElementsByType ( "vehicle" ) for k, vehicle in ipairs ( vehicles ) do if checkEmpty( vehicle ) then local seats = getVehicleMaxPassengers(vehicle) resetVehicleIdleTime ( vehicle ) respawnVehicle ( vehicle ) end end end, 5000, 1) end end addEvent( "respawn", true ) addEventHandler( "respawn", getRootElement(), respawn ) function respawn60() local accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then outputChatBox("* Respawning all empty vehicles in 15 secs, get to your car to keep it!") setTimer(function () triggerServerEvent ( "respawn10", getLocalPlayer() ) end, 15000, 1) end end addEvent( "respawn60", true ) addEventHandler( "respawn60", getRootElement(), respawn60 ) function respawn10() local accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then outputChatBox("* Respawning all empty vehicles in 10 secs, get to your car to keep it!") setTimer(function () triggerServerEvent ( "respawn", getLocalPlayer() ) end, 10000, 1) end end addEvent( "respawn10", true ) addEventHandler( "respawn10", getRootElement(), respawn10 ) function checkEmpty( vehicle ) local passengers = getVehicleMaxPassengers( vehicle ) if type( passengers ) == 'number' then for seat = 0, passengers do if getVehicleOccupant( vehicle, seat ) then return false end end end return true end I gess, you know what I mean to create, when you write a commands, it calls a timer to another function to do, after it calls that function other function calls other to respawn vehicles finally . Help me, thanks a lot!
  16. thanks, everything is working just fine!
  17. Hi, someone help me to fix this script... .lua opening/closing gates area51 script local nonOpenables = { --this is easier [287]=true, [285]=true, [193]=true, [192]=true, [191]=true, [294]=true, [82]=true, [83]=true, [84]=true; } base_area69gate1 = createObject ( 2929, 215.99548339844, 1875.40234375, 13.938992500305, 0, 0, 0 ) base_area69gate2 = createObject ( 2929, 211.94564819336, 1875.40234375, 13.938992500305, 0, 0, 0 ) base_area69col = createColCircle ( 213.94564819336, 1875.40234375, 13.938992500305, 7 ) function openbase_area69gates(thePlayer) local skin = getElementModel (hitPlayer) if nonOpenables[skin] then moveObject (base_area69gate1, 5000, 218.99548339844, 1875.40234375, 13.938992500305 ) moveObject (base_area69gate2, 5000, 208.94564819336, 1875.40234375, 13.938992500305 ) end end addEventHandler( "onColShapeHit", base_area69col, openbase_area69gates ) function closebase_area69gates(thePlayer) local skin = getElementModel (hitPlayer) if nonOpenables[skin] then moveObject (base_area69gate1, 5000, 215.99548339844, 1875.40234375, 13.938992500305 ) moveObject (base_area69gate2, 5000, 211.94564819336, 1875.40234375, 13.938992500305 ) end end addEventHandler( "onColShapeLeave", base_area69col, closebase_area69gates ) .map file <map edf:definitions="editor_main"> <object id="object (a51_blastdoorL) (2)" model="2929" interior="0" dimension="0" posX="246" posY="1863.435546875" posZ="19.253965377808" rotX="90" rotY="0" rotZ="35.955078125" /> <object id="object (a51_jetdoor) (1)" model="3095" interior="0" dimension="0" posX="268.93524169922" posY="1883.916015625" posZ="16.048067092896" rotX="0" rotY="0" rotZ="0" /> </map> My gates not opening/closing then I am with that skins, please fix that. Thanks a lot!
  18. Hi all again, today I want to know how to fix my resources... When player joins, or troll or epic it shows a message as it should show, but when player or troll or epic or... leave a server, there no quit message showing. function login() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Troll")) then outputChatBox("* [Troll] " .. getPlayerName(source) .. " #FF6464has joined the game!", getRootElement(), 255, 100, 100, true) -- elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Epic")) then outputChatBox("* [Epic] " .. getPlayerName(source) .. " #FF6464has joined the game!", getRootElement(), 255, 100, 100, true) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then outputChatBox("* Player " .. getPlayerName(source) .. " #FF6464has joined the game!", getRootElement(), 255, 100, 100, true) end -- The End of " if " end -- The End of " function login " addEventHandler("onPlayerLogin", getRootElement(), login) And my quit resource: addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' #FF6464has left the game [' .. reason .. ']', 255, 100, 100) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' #FF6464is now known as ' .. newNick, 255, 100, 100) end ) So, someone, please - fix my quit players script, when players quits the game, no message were showing in chat... Where a problem is? Thanks a lot!
  19. Hi all again, I am just writing and writing for help, but i hope you guys help me I want to find or download or... resource should look like: If zombie attacks player, he randomly will be infected for a random time with a random damage. Simple: Zombie attacked you, but you were not infected, zombie attacked you again and you were not infected, zombie attacked you again and again..., you were infected, and you hp will decreasing by 3hp every 1 sec for 6sec, z. a. y. again, you were not infected and it will be randomly... I know that that resource exsisting, so please help, thanks a lot!
  20. Hi all, today, I would like to ask you guys, how to make, from where to get, how to get and blah... a resource, that something would be look like that: If players is not in vehicles, after 10mins all server unused vehicles will be respawned to their positions with a alert messages: INFO: Attention! Unused server vehicles will be respawned after 10mins! INFO: Server vehicles successfully respawned! If you are in vehicle, that vehicle won't be spawned, just others unused vehicles. I know that that resource is existing, please help me, thanks a lot!
×
×
  • Create New...