Jump to content

Msypon

Members
  • Posts

    76
  • Joined

  • Last visited

Everything posted by Msypon

  1. Msypon

    Hud messages

    hi guys i need help, so i have downloaded the resource "hud_messages" then my question is: how to make texts not be repeated? for example this image: http://img341.imageshack.us/img341/3117 ... 084031.png, i just want the same text one time ( not being repeated ), can you help me?
  2. Msypon

    Error

    im learning sqllite men, which result table are you talking?
  3. Msypon

    Error

    Line 21: attempt to index field '?' addEventHandler ( 'onResourceStart', resourceRoot, function ( ) executeSQLCreateTable ( 'SQLData', 'money INT, serial STRING' ) end ) addCommandHandler ( 'savesql', function ( player ) local serial = getPlayerSerial ( player ) local money = getPlayerMoney ( player ) executeSQLQuery ( 'UPDATE SQLData SET money = ? WHERE serial = ?', money, serial ) end ) addCommandHandler ( 'loadsql', function ( player ) local serial = getPlayerSerial ( player ) local result = executeSQLQuery ( 'SELECT money FROM SQLData WHERE serial = ?', serial ) if ( type ( result ) == "table" and #result == 0 ) or not result then return setPlayerMoney ( player, result[1].money ) end end )
  4. ok, thanks solid and csigusz for the help
  5. function autoLoginSaveSQL ( ) local account = getAccount ( getAccountName ( getPlayerAccount ( source ) ), pass ) executeSQLQuery ( 'UPDATE autoLoginSQL SET account = ?, password = ?', account ) end addEventHandler ( 'onPlayerLogin', root, autoLoginSaveSQL ) function autoLoginFromSQL ( ) local account = getAccount ( getAccountName ( getPlayerAccount ( source ) ), pass ) executeSQLQuery ( 'SELECT account, pass FROM autoLoginSQL WHERE account = ? password = ?', account ) logIn ( source, account, pass ) end addEventHandler ( 'onPlayerJoin', root, autoLoginFromSQL ) what is wrong?
  6. Msypon

    attach

    THANK YOU TALP AND PRESTAGE
  7. Msypon

    attach

    addCommandHandler ( 'remspe', function ( source, cmd ) if ( isElement ( box[source] ) ) then destroyElement ( box[source] ) triggerClientEvent ( root, 'pRemove', root ) end end )
  8. Msypon

    attach

    Thx worked, i need another help with this addEvent ( 'pRemove', true ) addEventHandler ( 'pRemove', root, function ( ) if isElement(sound[source]) then stopSound ( sound[source] ) destroyElement(sound[source]) sound[source] = nil end end ) The sound is not stopping
  9. Msypon

    attach

    It worked prestagi, but only me can listen the music, I want everyone
  10. Msypon

    attach

    Hi guys, i want to attach a sound box on my car but what is wrong? server box = { } addCommandHandler ( "caf", function ( source, commandName ) local veh = getPedOccupiedVehicle ( source ) local x, y, z = getElementPosition ( veh ) box [ source ] = createObject ( 2229, x, y, z ) local ax, ay, az = getElementPosition ( box [ source ] ) attachElements ( box [ source ], veh, 0.3, -2.3, 0 ) triggerClientEvent ( 'boxattach', root, box, ax, ay, az ) end ) client addEvent ( 'boxattach', true ) addEventHandler ( 'boxattach', root, function ( box, ax, ay, az, url ) sound = playSound3D(url, ax, ay, az, true) setSoundMaxDistance ( sound, 100 ) attachElements ( sound, box [ localPlayer ] ) end )
  11. Msypon

    dxGetStatus

    How to get all [lua=code]dxGetStatus[/lua] in a GUI?
  12. Msypon

    Simbol

    Thx for this Andrei
  13. Msypon

    Simbol

    Ok thx for your help
  14. Msypon

    Simbol

    Ok ty, could you explain this simbol "_" too? Why this simbol is before a variable? Like this _onPlayerSpawn
  15. Msypon

    Simbol

    Whats the diference between this simbol "^" and this simbol "*"?
  16. Msypon

    Command

    Whats wrong? i want to allow only these commands to output on chat [lua]commands = { 'hi', 'oh' } addEventHandler('onPlayerCommand',root,function(cmd) if cmd == commands[cmd] then outputChatBox('passed') end end )
  17. Msypon

    Autologin

    Is possible to make a autologin script with SQLite?
  18. Msypon

    Loading

    Yes and i wanted to know if there is an export function for it, because i already saw this in other servers
  19. Msypon

    Loading

    Hi, i wanted to know the of this script/where i can find
  20. Msypon

    Aim

    So i have to create a shader for it?
  21. Msypon

    Aim

    how to change the original aim image to mine?
×
×
  • Create New...