Jump to content

Chupakabra549

Members
  • Posts

    24
  • Joined

  • Last visited

Chupakabra549's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. I mean, how to make fraction how police, army etc. Looks like samp
  2. Ну или напиши в чем различие server и client, что и где.
  3. И?А в серверных что?В клиентских основа находится
  4. Я тут подумал, а толку вкладывать труд и делать что-то, если любой игрок, который зайдет на мой сервер, просто скачает все файлы, а потом поставит на свой сервер?То есть труд будет напрасным, а другие просто на халяву им воспользуются.Толку?В таком случае лучше переходить на samp
  5. Хочу создать команду, чтобы когда ее вводишь игроку давали деньги function givePlayer250Dollars(thePlayer, command, amount) -- когда вызывается команда 'givecash' givePlayerMoney(thePlayer, 250) -- выдать $250 игроку, который использовал команду end addCommandHandler("givecash", consoleGiveCash) -- добавить обработчик команды в событие, когда игрок вызывает команду И выдает ошибку Bad argument @ ' addCommandHandler' [Expected funtion at argument 2, got nill]
  6. Когда я добавляю, я сохраняю, и запускаю сервер, но он заново все ставит!
  7. Буду временно маппером и создавать обьекты и украшать карту, одновременно обучаюсь скриптингу и языку луа(хотя уже много чего знаю), в то время пока скриптер будет делать хотябы, систему регистрации, донат систему, и фракции.
  8. Это в server function registerPlayer ( source, commandName, password ) if ( password ~= "" and password ~= nil ) then local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) triggerClientEvent (player, "CloseRegisterPanel") else outputChatBox ( "Error creating account, contact the server admin", source ) end end end addCommandHandler ( "register", registerPlayer ) А это в client showCursor(true) function onLoginKlick() guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor.button[2], onLoginKlick, false) function closeLoginPanel() guiSetVisible ( GUIEditor.tabpanel[1] , false ) showCursor(false) end function registerPlayer ( source, commandName, password ) local username = guiGetText( GUIEditor.edit[1] ) local password = guiGetText( GUIEditor.edit[2] ) triggerServerEvent("register", getLocalPlayer(), getLocalPlayer(), username, password ) if ( password ~= "" and password ~= nil ) then end end addEventHandler("onClientGUIClick", GUIEditor.button[1], registerPlayer) Проблема в том, что не получается не зарегаться ни залогиниться
  9. чем к примеру ? Например, как вообще скриптить?Что конкретно надо знать по языку луа, и надо ли учить функции от Mta? Я хочу сделать сервер, хочу сделать систему регистрации, чтобы окна были, а не писать команду и т.п
  10. I want to make animation for player, who will seat on Moto function getPedAnimation(ped, thePed) -- The Command Function if thePlayer then -- If a player name entered then thePlayerToCopyFrom = addHelmetOnEnter -- get player from his name CLO_Pose_Hat, Anim = getPedAnimation(thePlayerToCopyFrom) -- get the player animation if CLO_Pose_Hat then -- if got the animation successfully then setPedAnimation(localPlayer, CLO_Pose_Hat, Anim) -- set my animation the same outputChatBox("* Copied Successfully !") -- output chat message end else outputChatBox("* Please Enter a Player Name To Copy From !") -- if you didnt entered a player name , then output a chat box message end end addCommandHandler("copyanim", CopyAnimation) -- adding the Command Handler addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) --add an event handler for onVehicleStartEnter function addHelmetOnEnter ( thePlayer, seat, jacked ) if ( getElementModel ( source ) == 522 ) then -- if its a nrg addPedClothes ( thePlayer, "moto", "moto", 16 ) -- add the helmet end end addEventHandler ( "onVehicleEnter", getRootElement(), addHelmetOnEnter ) function removeHelmetOnExit ( thePlayer, seat, jacked ) if ( getElementModel ( source ) == 522 ) then -- if its a nrg removePedClothes ( thePlayer, 16 ) -- remove the helmet end end addEventHandler ( "onVehicleExit", getRootElement(), removeHelmetOnExit )
×
×
  • Create New...