Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. getPlayerSerial client side only returns the local player serial.
  2. To get their serial and IP you'll need to get the list server side, then send it to the client side.
  3. Click that function I gave you, it has examples.
  4. Use a timer to do that. setTimer
  5. You mean that you want them to change? first one, then another?
  6. Castillo

    Very simple!?

    They aren't "words", they are called "variables".
  7. Castillo

    Help me :)

    Read this then: https://wiki.multitheftauto.com/wiki/Se ... our_server
  8. Stolen: https://community.multitheftauto.com/in ... ls&id=6743 DONE
  9. Stolen: https://community.multitheftauto.com/in ... ls&id=6739 DONE
  10. No, there isn't, you can create a table like this one: skinNames = { [ 299 ] = "Claude", [ 0 ] = "CJ" } function getSkinNameFromID ( skinID ) return skinNames [ skinID ] end
  11. https://code.google.com/p/mtasa-resourc ... p&can=2&q=
  12. That the object should be removed.
  13. addEventHandler ( "onPlayerChat", getRootElement(), function ( msg ) local splittedMsg = split ( msg, " " ) if ( type ( splittedMsg ) == "table" ) then if ( splittedMsg [ 1 ] == "!money" or splittedMsg [ 1 ] == "!cash" ) then local player = getPlayerFromName ( splittedMsg [ 2 ] ) if ( player ) then local cash = getPlayerMoney ( player ) outputChatBox ( "#0188ff".. getPlayerName ( player ) .." Has #ff8801$".. cash, root, 255, 255, 255, true ) else outputChatBox ( "Player not found!", source, 255, 0, 0 ) end end end end ) function getPlayerFromName ( partialName ) if partialName then local matches = {} for i, player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerName ( player ) == partialName then return player end if getPlayerName ( player ) : gsub ( "#%x%x%x%x%x%x" , "" ) : lower ( ) : find ( partialName : lower ( ) ) then table.insert ( matches , player ) end end if #matches == 1 then return matches [ 1 ] end end return false end
  14. Castillo

    help

    Post the full script.
  15. Get the latest editor, it has the feature to remove world objects.
  16. At the end of the function: "aplayerdied" there's: setPlayerWantedLevel( source, 0 ) Remove it.
  17. I still don't understand. See my edited post.
  18. If you don't post the error, how are we going to help you? P.S: You have an extra "end".
×
×
  • Create New...