Jump to content

TIGS98

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by TIGS98

  1. function cl_SetVehicleOwner ( theVehicle, thePlayer ) local oldVehicle = getElementData ( thePlayer, "cl_ownedvehicle" ) for k,v in ipairs(getElementsByType ( "vehicle" )) do if ( oldVehicle ~= false and oldVehicle == v ) then removeElementData ( oldVehicle, "cl_vehicleowner" ) removeElementData ( oldVehicle, "cl_vehiclelocked" ) removeElementData ( oldVehicle, "cl_enginestate" ) setVehicleLocked ( oldVehicle, false ) outputDebugString("REMOVE DATA") end end outputDebugString("UPDATE DATA") setElementData ( theVehicle, "cl_vehicleowner", thePlayer ) setElementData ( theVehicle, "cl_vehiclelocked", false ) setElementData ( thePlayer, "cl_ownedvehicle", theVehicle ) setElementData( theVehicle, "cl_enginestate", true ) end
  2. O que vocês acham ? To buscando a foto do álbum com o API do itunes FACEBOOK LINK Estou com uma ideia de criar uma votação online, assim os jogadores irão votar em qual será a próxima música. Sugestões ? Se alguém tiver é bem vinda.
  3. Agradeço ao @manawydan e ao @DNL291 pela força e pelo reconhecimento. Se precisarem de alguma coisa, estou a disposição.
  4. Bom.. Minhas atividades nesse fórum já são poucas, e depois de presenciar uma atitude como essa do @XeoN- só tem a diminuir. Não sei a que ponto alguns usuários que utilizam esse fórum querem chegar, com tantas intrigas, provocações e picuinhas. Em vez de um ajudar ao outro, ficam um uma intriga sem fim, um querendo ser melhor que o outro.
  5. se alguém precisar de programação relacionada a parte web, estou disponível. Meu último trabalho Este site foi simples, fiz em umas 3 horas no máximo, se quiser algo mais complexo, como uma scoreboard web, listar todos os jogadores online no momento e criar perfis desses jogadores usando mysql, php e lua ou se tiver uma ideia em mente, me contate pelo Skype: tiaguinhoods
  6. se alguém precisar de programação relacionada a parte web, estou disponível. Meu último trabalho Este site foi simples, fiz em umas 3 horas no máximo, se quiser algo mais complexo, como uma scoreboard web, listar todos os jogadores online no momento e criar perfis desses jogadores usando mysql, php e lua ou se tiver uma ideia em mente, me contate pelo Skype: tiaguinhoods
  7. Você está certo, não é necessário o uso de um software adicional para criar novas contas, pois existe o comando adduser. Mas acontece que o usuário terá acesso a outros diretórios, não sei se existe alguma forma de impedir isso, mas enfim, caso não seja possível, creio que a melhor opção seja instalar um software para o acesso FTP. Vamos supor que o amigo que criou o tópico precise liberar acesso a algum "administrador" que terá a determinada função de gerenciar as bases do servidor, bom ele poderá liberar um acesso no diretório "/home/server/mods/deathmatch/resources/[basesdoservidor]/" sem problema algum. Simples e sem dores de cabeça caso aja algum desentendimento, e o tal "administrador" se revolte e tente apagar metade dos arquivos de sua VPS.
  8. Não querendo ser chato @Banex, mais tenho quase certeza que ele irá precisar de contas de FTP personalizadas ( além do "root", contas com diretórios pré definidos por ele ) Exemplo: banex ******* /home/multitheftauto/server/ Lembrando que estou aqui para auxiliar no que eu posso
  9. Olá @Ryuzaki, bom eu já rodei meu servidor em um s.o linux a alguns meses, no começo vou admitir que não foi fácil, más conforme você vai "fuçando" você vai pegando as manhas e ganhando conhecimento no assunto. Acho que você vai precisar de um serviço de FTP rodando em conjunto para facilitar. Pesquise por proftpd , bastante simples de se implementar e de configurar. Se o seu s.o estiver usando repositórios use: # apt-get install proftpd Caso não esteja: # yum install proftpd ou # yum search proftpd Ver arquivo de configuração # vim /etc/proftpd.conf Pesquise também por htop, use-o para ter em detalhes o uso da CPU. Se o seu s.o estiver usando repositórios use: # apt-get install htop Caso não esteja: # yum install htop ou # yum search htop Usar: htop Bom estou meio enferrujado no s.o linux, já que vai fazer quase 1 ano que não mexo com isso, bom um abração e boa sorte.
  10. Olá @Stronger, bom se você está a procura de um serviço de hospedagem de confiança, procure empresas sólidas no mercado de hospedagem, não vá pelas pesquisas " host de mta ". A mais popular em locação de servidores Cloud e VPS no mundo que eu conheça é a OVH http://www.ovh.pt, não só pela sua estrutura, mais sim pela qualidade. Se as opções acima te limitar, tem a LGV http://www.lgvhost.com.br, eu particularmente já usei, e indico. Eles revende os servidores da OVH com um preço bastante acessível e me prestaram um ótimo atendimento.
  11. Hello GTX, thank you brother, helped me a lot! Thanks to MADEX well.
  12. And for this export format? BANSHEE 1400 3000 2 0 0 -0.2 70 1 0.89 0.5 5 220 16 10 rp 8 0.52 false 34 1.6 0.1 5 0.3 -0.15 0.5 0.3 0.15 0.49 45000 0 0 1 1 1
  13. Hello friends of the community, I'm with some difficulty, and I hope someone can help me. Well, I would like to know a way to modify the default handling of the vehicle, is an example: data.lua hand = { {BANSHEE 1400 3000 2 0 0 -0.2 70 1 0.89 0.5 5 220 16 10 r p 8 0.52 false 34 1.6 0.1 5 0.3 -0.15 0.5 0.3 0.15 0.49 45000 0 0 1 1 1}, {BARRACKS 10500 61407.5 4 0 0 0 90 0.65 0.7 0.47 5 75 8 2 4 d 4 0.4 true 27 1.2 0.05 0 0.47 -0.17 0.5 0 0.62 0.26 10000 0 8800 0 1 2} } hand.lua for i, v in pairs ( hand ) do code [...] end
  14. TIGS98

    callRemote

    Well, I can work better using php, since I know the functions. Well, help me redo the count of items in the table using the "count" of the moon php .. example: function test() local test = { abc, def, ghi, jkl } local num = count(test) return num end I'm not good at Moon script more I think you will understand, the result has to give 4 ( abc = 1 def = 1 ghi = 1 jkl = 1 ) = 4
  15. TIGS98

    callRemote

    are variables that come from server.php file that is synchronized with a script on the server via SDK refreshdata.php <?php include( "server.php" ); ?><?php include( "configurations.php" ); ?> <?php// $teamcr $teampo $teamci $teamad $online $slot ( server.php )$criminososcount = count ($teamcr); $policiaiscount = count ($teampo); $cidadaocount = count ($teamci);$administradorcout = count ($teamad); // mysql connection ( configurations.php )mysql_select_db("vdbg_servidor", $conecta) or print(mysql_error()); $sql = "UPDATE serverstatus SET online='".$online."', slots='".$slot."', criminososcount='".$criminososcount."', policiaiscount='".$policiaiscount."', cidadaocount='".$cidadaocount."', administradorcout='".$administradorcout."' WHERE id=0"; mysql_query($sql);mysql_close(); ?>
  16. TIGS98

    callRemote

    Every quit / login script will ask pro link to update the amount of online players addEventHandler ( "onPlayerQuit", root, function ( ) callRemote ( "http://www.website.com/mtasdk/refreshdata.php" ) end ) addEventHandler ( "onPlayerJoin", root, function ( ) callRemote ( "http://www.website.com/mtasdk/refreshdata.php" ) end ) that is, it will not send or receive data, but make a connection with the link and this link performs every operation
  17. I need help with the coordinate of the locs. I'm trying to detect the player's region and define a coordinate for the region "locs" I'm not getting more, if anyone can help .. local locs = nil local e = { ['blip'] = { }, ['marker'] = { } } addEvent ( "onPlayerStartArrested", true ) addEventHandler ( "onPlayerStartArrested", root, function ( p, c) if ( c == localPlayer ) then local x, y, z = getElementPosition ( localPlayer ) local city = getZoneName ( x, y, z, true ) if city == "Los Santos" then locs = { { 1565.48, -1694.23, 5.89 } } elseif city == "San Fierro" then locs = { { -1560.33, 661.19, 7.04 } } elseif city == "Las Venturas" then locs = { { 2292.11, 2451.46, 10.82 } } end for i, v in ipairs ( locs ) do local x, y, z = unpack ( v ) e['marker'][i] = createMarker ( x, y, z - 1, "cylinder", 2.5, 0, 120, 255, 120 ) e['blip'][i] = createBlip ( x, y,z, 30 ) addEventHandler ( "onClientMarkerHit", e['marker'][i], function ( p ) if ( p == localPlayer ) then for i, v in pairs ( e ) do for i, v in pairs ( v ) do if ( isElement ( v ) ) then destroyElement ( v ) end end end triggerServerEvent ( "sistemapolice:colocaojogadornacadeia", localPlayer ) end end ) end end end )
  18. Yes, I researched I guessed it already, so was thinking of creating a two-step authentication, in-game the player would have to type / code and would automatically generate code, this code he would use to synchronize your account with a new password on the website .. if anyone has another idea is welcome. This server is with the base of NG are very good scripts, xXMADEXx congratulations .. Sorry for my English, I'm Portuguese..
  19. Well, I wonder if there is some method of taking user account and user password on the server via php + sdk for authentication in a web page with login system, it is posível? Or pick up the user's password and enter in mysql database? so that the web page via php I can get this password and authenticate For you to know more, my server is Brazilian, and has created a fully synchronized web page to the server Link website http://www.vdbg.org I am revolutionizing knowledge of br community in the affairs of website + mta ??
×
×
  • Create New...