Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. I made trace with php using Maxmind include("mta_sdk.php"); $input = mta::getInput(); $getPlayerTraceInfo = getPlayerTrace($input); // I made the functions, so i cant post full php. mta::doReturn( $getPlayerTraceInfo ); returns [{"ip":"24.24.24.24","country":"United States","city":"Binghamton"}] function result(sum) --outputChatBox(sum["ip"]) outputServerLog(sum["ip"]) end function InfoCityPlayer(ip) callRemote("http://localhost/trace.php", result, ip) end InfoCityPlayer("24.24.24.24") returns nil
  2. function giveWeaponsOnSpawn2 ( player ) giveWeapon ( player, 24, 200 ) giveWeapon ( player, 34, 250 ) end function giveWeaponsOnSpawn ( theSpawnpont, theTeam ) setTimer ( giveWeaponsOnSpawn2, 10000, 1, source) ---give The Player the weapons after 10 seconed end addEventHandler ( "onPlayerSpawn", getRootElement(), giveWeaponsOnSpawn )
  3. Cadu12

    2 Questions

    COLOR YELLOW is server-side COLOR RED is client-side COLOR BLUE is both Edit: Just look it in wiki mtasa.
  4. Cadu12

    2 Questions

    giveWeapon giveWeaponAmmo setWeaponAmmo takeAllWeapons takeWeapon takeWeaponAmmo
  5. bool = it returns true/false element = https://wiki.multitheftauto.com/wiki/Element , if you use setElementAlpha with ped use SOURCE or PLAYER int = integer alpha = setElementAlpha(source, 0) if alpha then (bool true) outputChatBox("You got it with invisible") else (bool false) outputChatBox("ERROR ON INVISIBLE") end
  6. setElementHealth ( targetPlayer, getElementHealth(targetPlayer) 100 ) Wtf is that? Stop copy and paste from wiki. setElementHealth ( targetPlayer, 100 )
  7. "I do not will give you." it means that i have code it and i cant give you code Cant you read it? I have code.
  8. All in race_ghost, add line for trigger in race_toptimes.
  9. Cadu12

    Help me, please.

    Or reinstall MTASA.
  10. You know this forum are not request. You have to edit in race_ghost. I do not will give you.
  11. Aewsome GUI, good job Aibo
  12. Cadu12

    Problems

    Not problem and I dont tinhk so. JR10, sorry you're slow too .
  13. Cadu12

    Problems

    https://wiki.multitheftauto.com/wiki/GuiSetEnabled
  14. I know you are allowed copying ideas. Nice you did Insults me... I do not will help you anymore. I said you "You have to create your own and editor in race."
  15. You have to create your own and editor in race. PS: Are you copying ideas from EPG?
  16. 1º Learn english 2º Learn Lua scripting 3º If doesnt work, then it post on this forum. 4º ?
  17. Try: exports.dxscoreboard:scoreboardAddColumn( "Money", 60, "Money" )
  18. You dont need use timer. Use OnClientElementDataChange or OnElementDataChange events
  19. Nice, good job. Im not using this ^^ btw i am gamemode race only
  20. MTA Team is still wip. if you can help MTA team to fix problem, go to irc chat.
  21. You made in C++? good job
  22. Cadu12

    Problems

    @Jaysds1: Your code are wrong =/ Well, I have this using dxDrawText, Colored and Alpha... table.insert(yourtable, {"string", 255, false}) -- [1] string - text, [2] alpha - you can set alpha when times up , [3] boolean - you cant set some, add tables if #yourtable > 5 then table.remove(yourtable, 1) end -- it will remove at 1st every table. create function with onClientRender for i, v in ipairs(yourtable) do if v[2] <= 255 and v[3] == false then if v[2] <= 0 then v[3] = true else v[2] = v[2] - 0.50 end end end dxDrawText(v[1], 500, 500) PS: If you want soure code, I can give you in PM and not give to anyone my scripts.
  23. MTA Script Editor is better than this, lol...
  24. Try outputChatBox(tostring(message.translatedText)) I didnt tested yet Edit: Doesnt works, he is Java and not PHP
  25. Are you using x64? if so, it sucks with windows xp only.
×
×
  • Create New...