Jump to content

Darky

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Darky

  • Rank
    Square
  • Birthday 12/04/1994

Details

  • Gang
    Nop
  • Location
    Tunisian
  1. i think someone can help to create a bot limit. for example, max of slothbots in the server must be 10 , I make 10 bots and so I can´t do more.
  2. No problem , i do it whit "onBotWasted" and dont have any problems (for now ), I havent do it without your help , thx very much.
  3. mmm , I didnt know that thx i think i can do the respawn bot whit onBotWasted ? addEvent("onBotWasted",true) addEventHandler ("onBotWasted",resourceRoot, lol)
  4. how i can create a Zombie sistem whit Slothbot ? i do this but bot dont spawn ._. zombiesTeam = createTeam ("Zombies", 255 , 0 , 0) function zombieSistem( ) x,y,z = getElementPosition( source) zombie1 = exports [ "slothBot" ]:spawnBot ( x+5,y+5,z+0.5 , 0, 46, 0, 0, zombiesTeam , 0, "hunting", true ) addEventHandler ( "onResourceStart", getRootElement(), zombieSistem)
  5. Darky

    Timers question

    client side EDIT: i fixed it , was my fail, i remember i need to use onClientPlayerWasted thanks for your help
  6. Darky

    Ataque

    TeamNemesis = createTeam ( "Nemesis" ,255 , 0 , 0 ) function Nemesisbymanawydan ( ) nemesi = exports [ "slothBot" ]:spawnBot ( -1935.5480957031, 665.44055175781, 47.0, 90, math.random ( 300, 303 ), 0, 0, TeamNemesis , 0, "hunting", true ) setElementModel ( nemesi, 2 ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) triggerClientEvent ( "nsound", root ) setTimer( function() setElementHealth ( nemesi, 100000 ) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Ne
  7. Darky

    Timers question

    is correct ? function StopMyTime( ) if isTimer(MyTime) then killTimer ( MyTime) end end addEventHandler("onPlayerWasted", getLocalPlayer(), StopMyTime)
  8. How i cant stop a Timer , When the player die ?
  9. ERROR: weapons/s.lua:25: bad argument#1 to "random" ( interval is empty )
  10. good , now works nice , thanks Andrel , 50p and all for time and help. :B Andrel , i use these and give me error. local Weapons = { [31] = true, [30] = true }; but i change for these again , and work good local Weapons = {31 , 30 }
  11. and other question, i can create a list which all skins? or something that looks example local Weapons = {31 , 30 } local skins = { 287 , 286 } addEventHandler( "onPlayerSpawn", root, function( ) local playerSkin = getElementModel( source ); if( playerSkin == skins ) then giveWeapon( source, Weapons[ math.random ( #Weapons ) ], 100 ); elseif( playerSkin == 285 ) then giveWeapon( source, 22, 100 ); end end )
  12. what code is the correct ._. the frist or second
  13. I have a server, when you enter gives you a random skin,I try to get the skin 287 or 286, the server give me a M4 but if hi have the skin 285 give me a Colt
  14. i have a question , i am learning in this and i don't know if i can change the "element" ( source ) and replace this for a skin tablet or a specific skin example: local Skin = { 9,12 } function skinW ( ) giveWeapon ( Skin , 2 , 1, true ) end addEventHandler ( "onPlayerSpawn", getRootElement(), SkinW )
×
×
  • Create New...