Jump to content

dewu

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by dewu

  1. Thank you dude, but i need system where bases can buy by game $.
  2. Is any way to get it? Maybe someone have that system.. please.
  3. Hi guys. Im looking for these base system: http://zapodaj.net/957120a020f1e.png.html http://zapodaj.net/b3315319fe6e5.png.html https://community.multitheftauto.com/in ... ls&id=9173 Why the hell this resource is closed for the public?!
  4. What's mean that? Where I should paste this?
  5. Now is connection but still the same error: Fatal error: Uncaught exception 'Exception' with message 'Not Found' in D:\WebServ\httpd\mm\sdk\mta_sdk.php:203 Stack trace: #0 D:\WebServ\httpd\mm\sdk\mta_sdk.php(79): mta->do_post_request('192.168.137.2', 22005, '/PHP_Callback/c...', '["testujep","99...') #1 D:\WebServ\httpd\mm\sdk\mta_sdk.php(257): mta->callFunction('PHP_Callback', 'giveTheMoneyToA...', Array) #2 D:\WebServ\httpd\mm\addmoney.php(19): Resource->call('giveTheMoneyToA...', 'testujep', '9999') #3 {main} thrown in D:\WebServ\httpd\mm\sdk\mta_sdk.php on line 203
  6. Okay, i got something. I hosted website server local on my computer by use program call Webserv. but in browser still same error: Parse error: syntax error, unexpected $end in D:\WebServ\httpd\mm\addmoney.php on line 21 and no connection with server. I got connection by use clean script posted by xXMADEXx: [2014-08-16 13:51:55] HTTP: 'dewu' entered correct password from 192.168.137.2 but still something is wrong: Fatal error: Uncaught exception 'Exception' with message 'Not Found' in D:\WebServ\httpd\mm\sdk\mta_sdk.php:203 Stack trace: #0 D:\WebServ\httpd\mm\sdk\mta_sdk.php(79): mta->do_post_request('192.168.137.2', 22005, '/PHP_Callback/c...', '["dewu","1000"]') #1 D:\WebServ\httpd\mm\sdk\mta_sdk.php(257): mta->callFunction('PHP_Callback', 'giveTheMoneyToA...', Array) #2 D:\WebServ\httpd\mm\addmoney.php(10): Resource->call('giveTheMoneyToA...', 'dewu', '1000') #3 {main} thrown in D:\WebServ\httpd\mm\sdk\mta_sdk.php on line 203 It's my first contact with PHP_SDK. To everything I had to walk alone. So, please help familiar users with it ;/
  7. Check first page. What's wrong with my code?
  8. Because i just do it few minutes ago, after you post, you're not helping. Maybe i do something wrong: 1. Send PHP file by FTP to website server (http://www.ddesign.webt.pl/mta/addmoney.php - there it is) 2. Make a new resource with LUA file called PHP_Callback and add it on server. 3. Add MTA_SDK files by FTP to website server (http://www.design.webt.pl/mta/mta) 4. Edit PHP file $mta = new mta ( "192.168.137.2", 22003); 5. Add resource Admin permissions in ACL.xml 6. Run server, open browser, type http://www.ddesign.webt.pl/mta/addmoney ... ewu&m=1000 and got these syntax error.
  9. What's the point of your post? I'm newbie, i try to write something and I asked did I do it correctly. I started server on LAN and I got that error from website: Parse error: syntax error, unexpected $end in /home/dewu/domains/ddesign.webt.pl/public_html/mta/addmoney.php on line 21 Line 21: ?>
  10. It will works? Server isn't started yet so i can't test this. <?php if(!isset($_POST['submit'])) { ?> "" method="post">Login: "text" name="a"> "submit" name="submit"> <?php if ( isset ( $_GET['m'] ) && isset ( $_GET['a'] ) ) { $login = $_POST['a']; $money = $_GET['m']; $account = $_GET['a']; include "mta/mta_sdk.php"; $mta = new mta ( "server ip", port, username, password ); $mta->getResource("PHP_Callback")->call("giveTheMoneyToAccount", $account, $money ); }?> And how to set money amount in script? Something like: givePlayerMoney ( v, 99999 ) will works? I want few scripts like that, mean who gives 1000, 2000, 3000$ etc.
  11. Url looks simply to hack Maybe any other script or system? ;/ I'll be grateful.
  12. Lul, I never played earlier on this server, I don't see the reason. By using FlyVPN I create new Connection with other IP, Gate and MAC, so that cannot be any script.
  13. Strange situation. I used FlyVPN to change IP to Russia (server is Russian) and the server still kick me. I don't have any ideas, I can't find any contact to admin ;/ Also I tried from my second computer, the same.
  14. Okay, I will. Thanks for all
  15. http://pastebin.mtasa.com/637467011
  16. I tried use other nicknames, no result. Always I got kicked by myself
  17. Hi guys. I got strange problem with play on DayZ Standalone server IP: mtasa://46.174.50.41:22264 (that's not advertisement). When I connect to server first file is downloaded without any problems, but later when download of files of this mod started I got kicked by my nickname, it's look like in subject name. I tried to reinstall MTA and GTA, no result. Also I delete files from \mods\deathmatch\resources and nothing too. Sorry for my english, so any suggestions?
  18. Okay, it's look pretty nice. I read some tutorial, but still I don't know how to use that to add money. Any tips?
  19. Hi guys. I got the question: Is this possible to add game money $ to some player from website? If yes, what should I use to do that?
  20. So, how i can use that code? Add as a server or client script? Where?
  21. Hi guys. I want to use MTA resource call "Voice" to add voice chat communication system to my server, but I want to set it on 3D for some distance. I really don't know how to do that, but i think it's possible. If someone know, please help me I find something like this: local nearbyPlayers = {} addEventHandler( 'onPlayerVoiceStart', root, function() local r = 20 -- We get users' position local posX, posY, posZ = getElementPosition( source ) -- create a sphere of the specified radius in that position local chatSphere = createColSphere( posX, posY, posZ, chatRadius ) -- get a table all player elements inside it nearbyPlayers = getElementsWithinColShape( chatSphere, "player" ) -- and destroy the sphere, since we're done with it destroyElement( chatSphere ) -- We create a ColSphere -- We get next Empty channel local empty = exports.voice:getNextEmptyChannel ( ) exports.voice:setPlayerChannel(source, empty) -- We have playerList. Now what? Simple, we set them in a empty channel but first we egt current channel for index, player in ipairs (nearbyPlayers) do -- Supposing they are in the main channel (this wont work if they aren't. or bah, wont' work correctly ;D exports.voice:setPlayerChannel(player, empty) end end) -- So after that... addEventHandler("onPlayerVoiceStop",root, function() -- We set those playas back :3 exports.voice:setPlayerChannel(source) for index, player in ipairs (nearbyPlayers) do -- Going to lobby exports.voice:setPlayerChannel(player) end -- We clear the table nearbyPlayers = {} end) And now, how to use it?
×
×
  • Create New...