Jump to content

mjau

Members
  • Posts

    589
  • Joined

  • Last visited

Everything posted by mjau

  1. It's not very hard, you have just to stock the stats of player in database MySQL Example: local deads = getElementData(player, "deads") local wins = getElementData(player, "wins") local player = getPlayerName(player) callRemote("http://www.yourwebsite.com/MTA/test.php", result, deads, wins, player) And you get these informations in PHP file $table = mta::getInput(); $deads= $table[0]; $wins = $table[1]; $player = $table[2]; // Send infos in MySQL $base = mysql_connect ('host', 'login', 'password'); mysql_select_db ('database', $base); $sql = 'INSERT INTO player_stats VALUES("$player", "'.$deads.'", "'.$wins.'") '; mysql_query($sql); mysql_close(); // Return true if is added mta::doReturn(true); Now, in another file, you can get the informations only using PHP & MySQL Example, you have a file with stats of every players have played in your server <?php $base = mysql_connect ('host', 'login', 'password'); mysql_select_db ('database', $base); $sql = 'SELECT * FROM player_stats'; $req = mysql_query($sql); while($data = mysql_fetch_array($req)){ $playername = $data['name']; $deads = $data['deads']; $wins = $data['wins']; echo "<b>$playername</b><br /> Wins: $wins<br /> Deads: $deads<br />"; } mysql_close(); ?> K so if i want to fill an html file with that how ? im a noob at PHP...
  2. trigger it with a timer to delay it a bit...
  3. http://pixelterror.ru/up/LighterBlack.zip
  4. Atleast tell me the few scripts u said u needed because noone will create a RP gamemode for you for free
  5. ok so if i want to send some stats from my script like death count i make a variable and uses that in callremote instead of Hello but now how can i get that into HTML part of the webstie ?
  6. nice tut cant wait for you to finish it
  7. lol it is Dwayne Jhonson and for WWE fans like me he is The rock and in the fast and furious movies he is Dom ... Now enough about the avatar...
  8. Could u tell if it worked please ? the only reason im gonna buy logitech g510 is because i need more keys for mta...
  9. i really dont see this as a problem...
  10. mjau

    bug or what

    use a timer to delay them...
  11. local timleft = 200 local pizzaActive = nil
  12. do you really need exactly that panel if so pm nextreme if he will update it or ask for permission so you can do it yourself...
  13. mjau

    Teleports

    https://wiki.multitheftauto.com/wiki/Local Global is the opposite
  14. mjau

    5000 posts!

    lolz why you guys discuss this? just find a cow and listen to it then
  15. mjau

    Open And Close

    u mean custom skins loaded with engine functions? if so i dont think this is possible
  16. i used another DB i think, anyway means the same
  17. Anyway dont take the risk of decrypting them( i got banned from one of the biggest servers in mta because of it and really i wish i didnt do it ...) oh binslayer your hash means u[space]suck lol hope that was ment for capy
  18. mjau

    SIPL!

    'Activity module Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. End Sub Sub Globals 'These global variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("MainMenu") End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Button1_Click Msgbox("Hello World", "Just wanted to say HI :D") End Sub bTW thats a simple code for android wich makes a message box with title hello world and I just wanted to say HI as text
  19. setDevelopmentMode ( bool enable )
  20. ok so i think i helpt about 3 people with this now 600er, lordeterras and someone i dont rember name on so if you trust me add me on skype and i will show you in teamviwer
  21. mjau

    MTA:SA 1.2 Released!

    Nice cant wait to get home and test it out ...
  22. i think this happesn if you are not in a team...
  23. mjau

    Breath

    ok but if i use isPedInWater that would make him impossible to kill for the cops when he is in water in a rpg server ? Edit forget it i just do if attacker == player then blahblhablah
×
×
  • Create New...