Jump to content

kalitonchik

Members
  • Posts

    102
  • Joined

  • Last visited

Everything posted by kalitonchik

  1. I mean( moving object automatically and continuously ) I think this addEventHandler ( "onPlayerSpawn",
  2. how to make a automatically moving object ( whitsout presing /...)
  3. yey its works i tuped /showobject Thanks, I appreciate your help
  4. see i am at that object but this one dont moveXD
  5. function loadObjects() myobject = createObject( 3117, 2500, 480, 10.5 ) end addEventHandler("onResourceStart", getRootElement(), loadObjects) function moveObjects() local 2500, 480, 10.5, = getElementPosition ( object ) local 12.5 = 10.5 + 2 moveObject ( object, 5000, 2500, 480, 12.5 ) end addCommandHandler("showobject", moveObjects) donw work dont spawn object and eror '' expected near '2500'
  6. maby this is beter way? but how can get this work correctly
  7. function loadObject() myobject = createObject( 3117, 2500, 480, 9.5 ) local 2500, 480, 10.5 local 12.5 = 10.5 + 2 moveObject ( object, 10000, 2500, 480, 12.5 ) end add(EventHandler ore CommandHandler) and ("onResourceStart", getRootElement(), loadObjects, moveObject)?
  8. You know, from this you can go crazy yes, now object are spawned, but dont move achtung
  9. https://forum.multitheftauto.com/viewtop ... 00#p286500 similar topic
  10. hm but whot you can tell about this?! ERROR: Couldn't packetize argument list, invalid element specified. ( object dont spawn )
  11. eror at unexpected symbol near '+' so i deleted / +2 (to see whots hapens next) but now another eror ERROR: Couldn't packetize argument list, invalid element specified.
  12. eror or '...' expected near '3117'
  13. i whont create moving object script include tdma map this is my attemp function createObject( 3117, 2500, 450.5, 9.6 ) moveObject ( 5000, x, y, -2 / +2 ) end object dont spawn so he can moveXD whot i lost whot can i do? act a fool!
  14. help please I have many times tried to run these scripts, but without success and examples from the wiki do not work http://development.mtasa.com/index.php?title=MoveObject please help a fool createObject(id,posX,posY,posZ) moveObject( there i need set value to up and down +;-value_posZ ) hear command for object move speed ( in whot time fore exemple 5 sek ) this is my guess please help to run this script
  15. senks for help i cheanget it to addEventHandler ( "onPlayerSpawn", getRootElement(), hudChanger )
  16. problem is that I can not decide I run this script - log dont show me erors! but nothing happens - this script must remove the ammo,area_name,money,radar,vehicle_name,weapon function hudChanger () showPlayerHudComponent ( source, "ammo", false ) showPlayerHudComponent ( source, "area_name", false ) showPlayerHudComponent ( source, "money", false ) showPlayerHudComponent ( source, "radar", false ) showPlayerHudComponent ( source, "vehicle_name", false ) showPlayerHudComponent ( source, "weapon", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) please help to correct the script
  17. Not many people know how to create the Player ore Pedestrian Animation scripts ! If you let me read it ! I'll tell you , where are a normal Example of PedAnimation script ! If anyone understands how to create a working script (I repeat A WORKING ANIM SCRIPT) then help ! http://development.mtasa.com/index.php? ... dAnimation Syntax bool setPedAnimation ( ped thePed, [string block=nil, string name=nil, int time=-1,bool loop=true, bool updatePosition=true, bool interruptible=true) ) My Example setPedAnimation ( ped thePed, ped, WALK_drunk, time=1, loop=true, updatePosition=true,interruptible=true) That is how I learned how to create ANIM These screenshoots are from mta sa official nightly build freeroam server
  18. dudes i'am not stuped and i take,stoll scripts from mta wiki and mta dm other game mode resources but this is not enough to create its own game mode I do not agree that my topic SPAM, TRASH I gave a beta version of the script, and here I dont request to give me the finished game mode whits all scripts lua...xml... but senks for info about this things -> Team functions, Text functions, setTimer for the time countdown, setElementData for score keeping, and getElementsByType to get a list of all players.
  19. thanks [DKR]silverfang now the problem is solved with bug (black screen) ! can anyone help about development team (Wanted and Hunter) functions functions such as : Score counting list (of players) and information (score, of a team) Round ends : 1) time ends, all Wanted team players are dead (Hunter team win) 2) last Survivor from Wanted team (Wanted team win) this enough to make this game mode a full I hope to help
  20. TWO TEAMS [ Wanted and Hunter ] in my script player with Survivor skin! then if it is killed, he spawn with hunter skin! but how can create really two teams (hunter,wanted) to play for points because different spawn points it is not different teams, it is just different skin's and only =( needs to create two teams, to be two opposing teams,and need create script to stop the Round at the last player from the [wanted team] , then the game will be meaningful ! who can help me in the development of this cool game mode ! and please, i know whot is MTA Development wiki, so dont put that links, useful site, but there are not many necessary things for my game mode look at my script, and tell me where and what i need to put and another question, look -> I go to the server -> I run this script -> He started -> I have a black screen -> then I need to do recconect -> and then I spawn . Who knows how to fix this bug my script ''manhunt.LUA'' function joinHandler() local x = -1814 local y = -116 local z = 5.5 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("manhunt born II kill", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) -- when a player spawns, function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) -- play a frontend sound for him playSoundFrontEnd ( source, 16 ) addPlayerClothes ( source, "hoodjackbeige", "hoodjack", 0 ) addPlayerClothes ( source, "chinosb", "chinosbiege", 2 ) addPlayerClothes ( source, "conv", "convheatorn", 3 ) addPlayerClothes ( source, "balaclava", "balaclava", 17 ) setPlayerStat ( source, 22, 500 ) setPlayerStat ( source, 23, 999 ) giveWeapon ( source, 5, 1 ) giveWeapon ( source, 22, 999 ) setSkyGradient (255,77,0,213,64,0) end -- add the player_Spawn function as a handler for onPlayerSpawn addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) function playerDied(totalAmmo, killer, killerWeapon, bodypart) outputChatBox(getClientName(source).." died!") spawnPlayer ( source, -1859, -132.5, 12 ) addPlayerClothes ( source, "highafro", "highafro", 1 ) addPlayerClothes ( source, "bask1", "timbergrey", 3 ) addPlayerClothes ( source, "countrytr", "countrytr", 17 ) addPlayerClothes ( source, "hockey", "hockeymask", 16 ) setPlayerStat ( source, 22, 999 ) setPlayerStat ( source, 23, 999 ) giveWeapon ( source, 9, 1 ) setSkyGradient (134,0,255,166,6,221) end addEventHandler("onPlayerWasted",getRootElement(),playerDied) Thank you for your attention
  21. why when I start my resource firstly i have a black screen and 2 spawn in the map i need reconnect where is problem HELP! function joinHandler() local x = -1814 local y = -116 local z = 5.5 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("manhunt born II kill", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) -- when a player spawns, function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) -- play a frontend sound for him playSoundFrontEnd ( source, 16 ) end -- add the player_Spawn function as a handler for onPlayerSpawn addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) function playerDied(totalAmmo, killer, killerWeapon, bodypart) outputChatBox(getClientName(source).." died!") spawnPlayer ( source, -1859, -132.5, 12 ) end addEventHandler("onPlayerWasted",getRootElement(),playerDied)
  22. whot is not correct !? its my test script [21:40:37] Starting mh1 [21:40:37] SCRIPT ERROR: ... sa/GTA San Andreas/Server/mods/deathmatch/resourcecache/mh1/manhunt.lua:2: or '...' expected near '391' [21:40:37] INFO: Loading script failed: ... sa/GTA San Andreas/Server/mods/deathmatch/resourcecache/mh1/manhunt.lua:2: or '...' expected near '391' function SpawnPlayer ( source, 391, 2548, 17 ) end addEventHandler ( "onPlayerJoin", Spawnlayer ) -- when a player spawns, function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) -- play a frontend sound for him playSoundFrontEnd ( source, 16 ) end -- add the player_Spawn function as a handler for onPlayerSpawn addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn )
  23. [22:45:49] Mode vote started by $.Kalitonchik(LV. [22:45:52] $.Kalitonchik(LV voted 7 (manhunt game mode) [22:45:52] Vote ended! [manhunt game mode] [22:45:52] Starting manhunt game mode [22:45:52] start: Resource 'manhunt game mode' started [22:45:52] Gamemode 'manhunt game mode' started. [22:45:59] QUIT: $.Kalitonchik(LV left the game [Quit] [22:46:03] Server stopped! [22:46:03] Stopping resources............... [22:46:03] Closing SQLite3 database please help I have a problem you can see in my script no errors resource started but I can't SPAWN Who can say where the error occurred please write the correct sctipt function greetPlayer ( ) local joinedPlayerName = getClientName ( source ) outputChatBox ( "Welcome " .. joinedPlayerName .. " to the server!" , source, 255, 255, 255 ) spawnPlayer ( source, -1814, -116, 5.5 ) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) addPlayerClothes ( source, "hoodjack", "hoodjackbeige", 49 ) addPlayerClothes ( source, "chinosb", "chinosbiege", 28 ) addPlayerClothes ( source, "conv", "convheatorn", 22 ) addPlayerClothes ( source, "balaclava", "balaclava", 5 ) setPlayerStat ( source, 22, 500 ) --Muscles setPlayerStat ( source, 23, 999 ) --Stamina setPlayerStat ( source, 24, 100 ) --Max Health setPlayerStat ( source, 78, 999 ) --Pistol Skill setPlayerStat ( source, 80, 999 ) --Sex Appeal clothes giveWeapon ( source, 22, 999 ) --Pistol giveWeapon ( source, 5, 1 ) --Baseball Bat setElementHealth ( source, 180 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) function quitPlayer ( reason ) local quittingPlayerName = getClientName ( source ) outputChatBox ( quittingPlayerName .. " has left the server (" .. reason .. ")" ) end addEventHandler ( "onPlayerQuit", getRootElement(), quitPlayer ) function playerDied(totalAmmo, killer, killerWeapon, bodypart) outputChatBox(getClientName(source).." died!") spawnPlayer ( source, -1859, -132.5, 12 ) end function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) addPlayerClothes ( source, "tramline", "tramline", 17 ) addPlayerClothes ( source, "hockeymask", "hockey", 15 ) addPlayerClothes ( source, "bask1", "timbergrey", 28 ) addPlayerClothes ( source, "countrytr", "countrytr", 2 ) setPlayerStat ( source, 22, 999 ) --Muscles setPlayerStat ( source, 23, 999 ) --Stamina setPlayerStat ( source, 24, 100 ) --Max Health setPlayerStat ( source, 78, 999 ) --Chainsaw Skill setPlayerStat ( source, 80, 999 ) --Sex Appeal clothes giveWeapon ( source, 9, 1 ) --Chainsaw setElementHealth ( source, 180 ) end addEventHandler("onPlayerWasted",getRootElement(),playerDied)
  24. my server side script in progress function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) addPlayerClothes ( source, "hoodjack", "hoodjackbeige", 49 ) addPlayerClothes ( source, "chinosb", "chinosbiege", 28 ) addPlayerClothes ( source, "conv", "convheatorn", 22 ) addPlayerClothes ( source, "balaclava", "balaclava", 5 ) setPlayerStat ( source, 22, 500 ) --Muscles setPlayerStat ( source, 23, 999 ) --Stamina setPlayerStat ( source, 24, 100 ) --Max Health setPlayerStat ( source, 78, 999 ) --Pistol Skill setPlayerStat ( source, 80, 999 ) --Sex Appeal clothes giveWeapon ( source, 22, 999 ) --Pistol giveWeapon ( source, 5, 1 ) --Baseball Bat setElementHealth ( source, 180 ) end function playerDied() outputChatBox(getClientName(source).." died!") spawnPlayer ( xxx ) and spawn in hunter team end
×
×
  • Create New...