Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. Would be nice if there was screenshots or videos & more info.
  2. use this: function onWasted () if ( isElement ( lowrider ) ) then destroyElement (lowrider) end if ( isElement ( mission1BLIP ) ) then destroyElement (mission1BLIP) end if ( isElement ( mission1Marker ) ) then destroyElement (mission1Marker) end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted)
  3. xXMADEXx

    weapon Bug

    so can't you just use "*2" in the giveWeapon function like this: local ammo = tonumber ( getAccountData ( getPlayerAccount ( player ), "weaponAmmo" ) ) if ( ammo ) then giveWeapon ( player, 5, ammo*2 ) end
  4. It links with the export, check the syntax for it.
  5. Here's an example: local per = 0 addEventHandler ( 'onClientRender', root, function ( ) dxDrawRectangle ( 0, 0, per*2, 20 ) if ( per < 100 ) then per = per + 1 end end ) You need to make a variable, and every so often update the variable to a higher/lower number, and the rectangle's width needs to be the variable.
  6. I didn't want to use a remote server..
  7. I tried the exact code you sent me: http://revolution-scripts.com/files/pag ... ervers.php but, it gives the error. I think it's the ASE port thing but I cannot be sure. Anyway to check it?
  8. That's how I wonder how game-state.eu did it... Is there a function of some sort in the MTA PHP SDK? Yea, I tried it to, didn't work.
  9. Hi guys. In PHP, is there a way to get the number of players and the server status, without any scripting on the server? Like how game-state.eu works. Thanks.
  10. There isn't a way to see exactly what a player has on their screen, but you can spectate then with setCameraTarget.
  11. You can use this, although I haven't tested it: local blockedUsers = { } addEventHandler ( "onPlayerLogout", root, function ( ) blockedUsers[source] = true setTimer ( function ( user ) blockedUsers[user] = nil end, 8000, 1, source ) end ) addEventHandler ( "onPlayerLogin", root, function ( ) if ( blockedUsers[source] ) then outputChatBox ( "You cannot login right now.", source, 255, 0, 0 ) cancelEvent ( ) end end ) and incase you need it, anti-command (Not tested): local BlockedUserCommands = { } addEventHandler ( "onPlayerCommand", root, function ( ) if ( isTimer ( BlockedUserCommands[source] ) ) then outputChatBox ( "You cannot use commands for another "..math.floor(getTimerDetails(BlockedUserCommands[source])/1000).." seconds.", source, 255, 0, 0 ) cancelEvent ( ) return end BlockedUserCommands[source] = setTimer ( function ( user ) BlockedUserCommands[user] = nil end, 3000, 1, source ) end )
  12. I fixed the download bug on Revolution of Scripting, the page will now work. I accidently put an extra space when I was entering the name into the database. http://revolution-scripts.com/?page=scr ... sage%20Bar
  13. You cannot put a custom made map in all dimensions/interiors, only the default GTA maps are applied to all dimensions and interiors.
  14. File's are forced download. In order to make them download when you want, use this script.
  15. I guess these: dxDrawText onClientRender -- event bindKey To do only a certain amount of messages, when the player makes a chat, you'll need to insert it into a table. You can check the number of indexes in the table, and if there are too many, remove the first index.
  16. Semicolon's are 100% optional in Lua, depends on the maker. 50p made that script, and he is a programmer, so he is just probably used to putting them, as for they're needed in other languages.
  17. OVH is a joke. They cannot handle DDOS attacks and they kicked UnitedGaming off their network once UnitedGaming started getting them regularly. There are other better ways to migrate attacks. Don't make this into a flame war. He was just suggesting it.
  18. Custom animations aren't supported by MTA yet.
  19. use: fetchRemote -- client side fileCreate fileWrite fileClose
  20. I can help revive it, problem is that i'm not 16, although i'm not a total noob to Lua. I'll be willing to help but you're going to need to make an acceptation to the 16+ rule.
  21. Replace line 157 in group.slua with this: if (not groupTable[group]) then return 255, 255, 255 end
  22. https://community.multitheftauto.com/index.php?p= ... ls&id=8292 Download & Check DONE
  23. Looks really good! Nice job.
×
×
  • Create New...