Jump to content

xeon17

Members
  • Posts

    1,903
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xeon17

  1. xeon17

    BUG

    The Script : radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) createBlip(279.40317, 1831.25439, 7.72656,61) marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255) addCommandHandler("buyarea51", function(player) local gangName = exports.gang_system:getPlayerGang(player) if gangName then local money = getPlayerMoney(player) if (money >= 1000000) then takePlayerMoney(player, 1000000) local color = exports.gang_system:getGangColor(gangName) setRadarAreaColor(radararea2, color[1], color[2], color[2], 255) outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area #FFF000 51", player, 0, 0, 0, true) end end end) The bug : [2013-12-30 15:45:13] WARNING: [XeonGames]Base\Area51.lua:12: Bad argument @ 'setRadarAreaColor' [Expected element at argument 1, got nil] Can someone help me
  2. xeon17

    Help

    Thanks , is working perfect now maybe i'll need a little help later becouse i no understand much about setTimer
  3. xeon17

    Help

    Whats wrong with this script '-' function Prop ( ) createMarker(2087.9260253906, 1448.8768310547, 10.8203125,"cylinder",2,0,0,255,255) createBlip ( (2087.9260253906, 1448.8768310547, 10.8203125, 31 ) f(isElementWithinMarker(thePlayer,marker)) then outputChatBox ( "#00FFFF [PROP] To buy the prop write /prop1 (Cost:10.000$)", player, 0, 0, 0, true) end local money = getPlayerMoney(player) if (money >= 10000) then takePlayerMoney(player, 10000) outputChatBox("outputChatBox ( "#00FFFF [PROP] You buyed the PROP !"", player, 0, 0, 0, true) addCommandHandler("prop1",Prop) setTimer ( Prop, 1000, ) givePlayerMoney ( thePlayer, 1000000 ) outputChatBox("outputChatBox ( "#00FFFF [PROP] You got 100.000$ from your Props !!"", player, 0, 0, 0, true)
  4. xeon17

    BaseArea51.

    [2013-12-30 15:45:13] WARNING: [XeonGames]Base\Area51.lua:12: Bad argument @ 'setRadarAreaColor' [Expected element at argument 1, got nil] i have this bug
  5. I like the login system looks very good . I have a question after the player choose a skin when he die does his skin change? or stay the skin what he choosed in Login System. Sorry for my bad english '-'
  6. xeon17

    BaseArea51.

    Hello ,i crated a script Area51 base and the base can be buyed . TAPL helped me allerdy 1 time but i wanna change my gang system and how now when some gang buy the base , the base no get that gang's color can someone help me please Here the Area 51 base script : radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) createBlip(279.40317, 1831.25439, 7.72656,61) marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255) addCommandHandler("buyarea51", function(player) local gangName = exports.gang_system:getPlayerGang(player) if gangName then local money = getPlayerMoney(player) if (money >= 1000000) then takePlayerMoney(player, 1000000) local color = exports.gang_system:getGangColor(gangName) setRadarAreaColor(radararea, color[1], color[2], color[2], 255) outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area #FFF000 51", player, 0, 0, 0, true) end end end) The gang system what i use now , not the old Solidsnake's gang system. local root = getRootElement() function create( player, commandName, teamName ) if ( getPlayerTeam(player) ~= false ) and ( countPlayersInTeam(getPlayerTeam(player)) == 1 ) then destroyElement(getPlayerTeam(player)) end local dasTeam = getTeamFromName ( teamName ) if ( dasTeam ) then setPlayerTeam ( player, dasTeam ) if ( dasTeam ) then outputChatBox( getPlayerName(player) .." has joined the gang "..teamName, root, 255, 0, 0) local tr, tg, tb = getTeamColor(gang) setPlayerNametagColor ( player, tr, tg, tb ) end else local gang = createTeam( teamName ) if (gang) then setPlayerTeam( player, gang ) setTeamColor ( gang, math.random(0,255), math.random(0,255), math.random(0,255) ) outputChatBox( getPlayerName(player) .." has created the gang " ..teamName, root, 255, 0, 0) end end end addCommandHandler("gang", create ) function nogangdamage ( player ) local dieGang = getPlayerTeam ( player ) if ( getTeamFriendlyFire( dieGang ) == true ) then setTeamFriendlyFire ( dieGang, false) outputChatBox("FriendlyFire disabled", player, 255, 0, 0 ) else setTeamFriendlyFire ( dieGang, true ) outputChatBox("FriendlyFire enabled", player, 255, 0, 0 ) end end addCommandHandler("gangff", nogangdamage ) function gangFarbe ( player, commandName, r, g, b ) local team = getPlayerTeam ( player ) setTeamColor ( team, r, g, b ) outputChatBox("The Gang "..getTeamName(team).." changed the color", root, tonumber(r), tonumber(g), tonumber(b)) end addCommandHandler("gangcolor", gangFarbe ) function gangName ( player, commandName, newName ) local theTeam = getPlayerTeam ( player ) setTeamName ( theTeam, newName ) outputChatBox("The gang "..getTeamName(theTeam).." changed the name to "..newName, root, 255, 0, 0) end addCommandHandler("gangname", gangName ) function deletegang () if ( getPlayerTeam(source) ~= false ) and ( countPlayersInTeam(getPlayerTeam(source)) == 1 ) then destroyElement(getPlayerTeam(source)) end end addEventHandler("onPlayerQuit", getRootElement(), deletegang) function quitgang(player, cmd) if ( getPlayerTeam(player) ~= false ) then local team = getPlayerTeam(player) outputChatBox(getPlayerName(player).." quitted the gang "..getTeamName(team), getRootElement(), 255, 255, 0) setPlayerTeam(player, nil) end end addCommandHandler("quitgang", quitgang)
  7. xeon17

    Question

    I have my MTA:SA server , how can i remove some gamemodes and maps that i no need? where i can delete the gamemodes maps what players download when they enter my server
  8. xeon17

    Prop

    i wanna crate a prop system so player go on the prop and write command /buyprop1 and he lose 10000 after every 4 minutes he get 100.000 $ i no know how to add (after 4 minutes) can someone tell me createMarker(2439.23340, 1918.38110, 5.30137,"cylinder",2,0,0,255,255) createBlip(2439.53003, 1916.40454,6.31917,61) function Prop () local money = getPlayerMoney(player) if (money >= 10000) then takePlayerMoney(player, 10000) GivePlayerMoney(thePlayer, 100000) the script is 50% , i'll add command handler and chatbox after i know how to set timer 4 minutes
  9. xeon17

    BaseArea51

    Yes now when im not on the checkpoint ''marker2'' i get chatbox [bASE] You arent on checkpoint but when i'm on checkpoint (marker2) still writing [bASE] You arent on checkpoint debug [2013-12-29 22:55:59] WARNING: [XeonGames]Base\Area51.lua:7: Bad argument @ 'isElementWithinMarker' [Expected element at argument 1, got nil]
  10. xeon17

    BaseArea51

    Work now but i have now this bug [2013-12-29 22:31:37] WARNING: [XeonGames]Base\Area51.lua:6: Bad argument @ 'isElementWithinMarker' [Expected element at argument 1, got nil] [2013-12-29 22:32:07] WARNING: [XeonGames]Base\Area51.lua:6: Bad argument @ 'isElementWithinMarker' [Expected element at argument 1, got nil]
  11. xeon17

    Questions

    I'm noob scripter , i started creating scripts before 10-15 days The script work , thank you much Solidsnake
  12. xeon17

    BaseArea51

    Script no work , i edited a little can someone help me. radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) createBlip(279.40317, 1831.25439, 7.72656,61) marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255) addCommandHandler("buyarea51", function(player) local gangName = exports.gang_system:getPlayerGang(player) if(isElementWithinMarker(thePlayer,marker2)then if gangName then local money = getPlayerMoney(player) if (money >= 1000000)then takePlayerMoney(player, 1000000) local color = exports.gang_system:getGangColor(gangName) setRadarAreaColor(radararea, color[1], color[2], color[2], 255) outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area 51 !", player, 0, 0, 0, true) else outputChatBox("#FFF000[bASE] You arent on the checkpoint !") end end end end) debug : [2013-12-29 21:39:56] SCRIPT ERROR: [XeonGames]Base\Area51.lua:6: ')' expected near 'then' [2013-12-29 21:39:56] ERROR: Loading script failed: [XeonGames]Base\Area51.lua:6: ')' expected near 'then'
  13. xeon17

    Questions

    No work when the player spawn , he still have only 1 sawed off and tec9 i changed the pedskill to 1000 after to 9999 , but nothing happen. he still have 1 sawn off & tec9 . I restarted script too nothing changed , no bug in debug.
  14. xeon17

    Questions

    This will work ? function onSpawn ( ) giveWeapon ( source, 24, 300 ) setPedStat(source, 26, 999) setPedStat(source, 32, 999) giveWeapon ( source, 26, 300 ) giveWeapon ( source, 32, 300 ) giveWeapon ( source, 31, 300 ) giveWeapon ( source, 46, 1 ) giveWeapon ( source, 24, 300 ) giveWeapon ( source, 34, 20 ) givePlayerMoney ( source, 2500 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), onSpawn ) And i thinked a little about my script Godmode , how i can set that only ''Admin'' can use the command /godmode
  15. xeon17

    Questions

    setPedStat(thePlayer 26, 999) setPedStat(thePlayer, 32, 999) no work can someone help me?
  16. xeon17

    Questions

    Hello , i crated a script who let players get money & weapons onSpawn but how i can change the Weapons skills at spawn? i wanna set all weapon skills to 1000 when player spawn. The Script : function onSpawn ( ) giveWeapon ( source, 24, 300 ) giveWeapon ( source, 26, 300 ) giveWeapon ( source, 32, 300 ) giveWeapon ( source, 31, 300 ) giveWeapon ( source, 46, 1 ) giveWeapon ( source, 24, 300 ) giveWeapon ( source, 34, 20 ) givePlayerMoney ( source, 2500 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), onSpawn ) And what functions i need to use to crate a Godmode script , when a admin write /godmode then nobody can kill him and over his head is a picture ''GODMODE'' . Thanks.
  17. xeon17

    Question

    Is all ok with this script ? function Ammu ( thePlayer ) setPedArmor ( thePlayer, 100 ) setElementHealth ( thePlayer, 100 ) giveWeapon ( thePlayer, 24, 1000000000 ) takePlayerMoney ( thePlayer 2500 ) outputChatBox("[sERVER] You got weapons,armor,health.",thePlayer,0,255,255) end addCommandHandler ( "comprararmas", Ammu )
  18. Thank You , working perfect now
  19. Hello i have problem with my script , when player die in event he no spawn in event again. Can someone help me debug : WARRING [XeonGames]Baseball/server.lua/40 bad argument @ ' SetElementPosition' Here is the script : function BaseballEvento ( ) outputChatBox ( "#00FFFF [sERVER] To Enter the Event write /irevento in chat", getRootElement(), 255, 0, 0, true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), BaseballEvento ) function Event ( thePlayer ) takeAllWeapons ( thePlayer ) setElementDimension ( thePlayer, 300 ) setPedArmor ( thePlayer, 100 ) setElementHealth ( thePlayer, 100 ) giveWeapon ( thePlayer, 24, 1000000000 ) giveWeapon ( thePlayer, 26, 1000000000 ) giveWeapon ( thePlayer, 32, 1000000000 ) giveWeapon ( thePlayer, 34, 1000000000 ) giveWeapon ( thePlayer, 39, 1000000000 ) setElementPosition ( thePlayer, 1358.0443115234, 2154.703125, 11.015625 ) outputChatBox("[EVENTO] You got the Weapons!.",thePlayer,0,255,255) outputChatBox("[EVENTO] You got health & armor.",thePlayer,0,255,255) outputChatBox("[sERVER] Event Started !! .",thePlayer,0,255,255) addEventHandler ( "onPlayerSpawn", thePlayer, onSpawn ) end addCommandHandler ( "irevento", Event ) function parandoEvento ( ) outputChatBox ( "#00FFFFEvent Closed", getRootElement(), 255, 0, 0, true ) end addEventHandler ( "onResourceStop", getResourceRootElement ( ), parandoEvento ) function onSpawn ( ) takeAllWeapons ( source ) setElementDimension ( source, 300 ) setPedArmor ( source, 100 ) setElementHealth ( source, 100 ) giveWeapon ( source, 24, 1000000000 ) giveWeapon ( source, 26, 1000000000 ) giveWeapon ( source, 32, 1000000000 ) giveWeapon ( source, 34, 1000000000 ) giveWeapon ( source, 39, 1000000000 ) setElementPosition ( source, 1358.0443115234, 2154.703125, 11.015625 ) end
  20. xeon17

    Script-Base

    Working Great , Thank you
  21. xeon17

    Script-Base

    i Use SolidSnake's Gang System > https://community.multitheftauto.com/in ... ls&id=1514 i have 1 other Other GANG SYSTEM , /gangcrate name , etc etc. can you tell me is this correct : radararea = createRadarArea( 2774.91992, 828.89435, 120, 206, 255, 255, 255, 225 ) createBlip(2820.63477, 971.96545, 10.75000,61) marker = createMarker(2814.67114, 972.01782, 9.75000,"cylinder",2,0,0,255,255) getPlayerMoney ( player thePlayer ) function takeCash ( thePlayer, buybase, 1000000 ) outputChatBox ( #FFF000[BASE] #00FFFF Your gang buyed a base #00FF00 Area #FFF000 51 )
  22. xeon17

    Script-Base

    radararea = createRadarArea( 2774.91992, 828.89435, 120, 206, 255, 255, 255, 225 ) createBlip(2820.63477, 971.96545, 10.75000,61) marker = createMarker(2814.67114, 972.01782, 9.75000,"cylinder",2,0,0,255,255) getPlayerMoney ( player thePlayer ) function takeCash ( thePlayer, buybase, 1000000 ) outputChatBox ( #FFF000[BASE] #00FFFF Your gang buyed a base #00FF00 Area #FFF000 51 ) How to set when player write /buybase , the radar area get color of his gang ?
  23. xeon17

    Script-Base

    How to give the radar area color of the gang who type command ''buy'' on the marker?
  24. xeon17

    Script-Base

    How can i make when a player with gang want buy a base (command:/buy) it take 1000000$ from that player and gives a radar area color of his gang , it should have when player no have the money he cant buy the base. --Radar Areas radararea = createRadarArea( 2774.91992, 828.89435, 120, 206, 255, 255, 255, 225 ) radararea1 = createRadarArea( 2698.17285, 2651.81396,-200,210, 255, 255, 255,225 ) radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) radararea3 = createRadarArea( 1096.89441, 1208.73755, -80, 152, 255, 255, 255, 225 ) radararea4 = createRadarArea( 996.50629, 2048.92480, -80, 132, 255, 255, 255, 225 ) radararea5 = createRadarArea( 2496.68774 ,1822.60291, -130, 142, 255, 255, 255, 225 ) --Blips createBlip(2820.63477, 971.96545, 10.75000,61) createBlip(2439.53003, 1916.40454,6.31917,61) createBlip(1058.81201, 1260.90857, 10.82031,61) createBlip(279.40317, 1831.25439, 7.72656,61) createBlip(939.85992, 2080.10718, 10.82031,61) createBlip(2587.63965, 2821.38135, 10.82031,61) --Markers marker = createMarker(2814.67114, 972.01782, 9.75000,"cylinder",2,0,0,255,255) marker1 = createMarker(2586.05591, 2840.79199, 9.82031,"cylinder",2,0,0,255,255) marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255) marker3 = createMarker(927.96558, 2076.13110, 9.82031,"cylinder",2,0,0,255,255) marker4 = createMarker(2439.23340, 1918.38110, 5.30137,"cylinder",2,0,0,255,255) marker5 = createMarker(1059.16650 ,1247.28064 ,9.82031,"cylinder",2,0,0,255,255)
×
×
  • Create New...