Jump to content

K4stic

Members
  • Posts

    708
  • Joined

  • Last visited

Everything posted by K4stic

  1. it will send you to interior at any marker because have root addEventHandler ( "onPlayerMarkerHit", root, warpinto1 ) so use this better Weaponshop1 = createMarker ( 1368, -1279.8, 12.7, "cylinder", 1.5, 255, 255, 255, 255 ) function warpinto1 ( player ) if ( source == Weaponshop1 ) then setElementInterior ( player, 1, 286, -40, 1001 ) end end addEventHandler ( "onPlayerMarkerHit", root, warpinto1 )
  2. K4stic

    MySQL question

    at connection just don't show it just asking if i do true the code
  3. K4stic

    MySQL question

    so this is good? dbQuery(handler, "CREATE TABLE IF NOT EXISTS accounts(username, password)")
  4. K4stic

    MySQL question

    executeSQLQuery This function executes an arbitrary SQL query and returns the result rows if there are any. It allows parameter binding for security (SQL injection is rendered impossible). that function SQL only i need MySQL
  5. K4stic

    MySQL question

    this using to connect to the MySQL or SQL no to create tables
  6. with what function dbExec dbQuery and how like i wonna create a table bans and to have indexes: username serial
  7. K4stic

    Color's

    realy was so easy? feeling so noob -.-" but thx
  8. K4stic

    Color's

    addEventHandler('onClientPlayerJoin', root, function() outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 255, 255) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 255, 255) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 255, 255) end ) this is by default JoinQuit i wonna to the players name if that player have color nick to show it now showing it: #000000Tram#454545zelo to show it: Tramzelo
  9. 1. UserPanel 2. Fix your Turf system ( because can't turf on 2 or more turfs at same time like if 5 players online every going turf with 1 turf for player they can't turf same time ) 3. Phone 4. Any shop ( weapon shop,24/7 shop e.t.c ) 5. House system 6. New Admin Panel 7. something that Community no have
  10. to do players life 200 their Health stat must be 1000 so Try this: function giveHealth(source) local accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then for i,player in ipairs(getElementsByType("player")) do setPlayerStat ( player, 24, 1000 ) setElementHealth(player, 200) end setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Vida Para todos os Jogadores",getRootElement(),171,205,239,true) else outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) end end addCommandHandler("darvida",giveHealth) it would be right or no by how you will make it
  11. Good Job Bro like always you making Perfect maps
  12. K4stic

    Pls help

    i know then one script is server or Client side
  13. K4stic

    Pls help

    same Problem at line 13
  14. K4stic

    Pls help

    one ask i wonna make to it each serial can register max 2 accounts
  15. K4stic

    Pls help

    maybe i use wrong the ExecuteSQLQuery i see how use it wiki the SELECT so how make it? https://wiki.multitheftauto.com/wiki/ExecuteSQLQuery
  16. K4stic

    Pls help

    and what will with other?
  17. K4stic

    Pls help

    what you mean?
  18. K4stic

    Pls help

    Error line 2 : Database query failed: no such table : accounts Error line 3 : attempt to get lenght of local 'serialCheck' (a boolean value) function onPlayerRegister(user,pass) local serialCheck = executeSQLQuery( "SELECT * FROM accounts WHERE serial = ?", getPlayerSerial( source ) ) if ( #serialCheck < 3 ) then if (user) and (pass) then local account = getAccount(user,pass) if (account == false) then addAccount(user,pass) local account = getAccount(user,pass) logIn(source,account,pass) triggerClientEvent(source,"Login:closeLoginPanel",source) exports.SCGhelp:createNewHelpMessageForPlayer( source,"You have registered!", 0, 255, 0) showPlayerHudComponent(source,'all',true) showChat(source,true) else exports.SCGhelp:createNewHelpMessageForPlayer( source,"You can only register 2 accounts for each serial!", 225, 0, 0 ) end else exports.SCGhelp:createNewHelpMessageForPlayer( source,"That account already exists.", 255, 0, 0) end else exports.SCGhelp:createNewHelpMessageForPlayer( source,"Fatal Register Error ~ Server Side", 255, 0, 0) return end end addEvent("Login:onPlayerRegister",true) addEventHandler("Login:onPlayerRegister",root,onPlayerRegister) look here the database http://i79.servimg.com/u/f79/17/22/60/79/tables10.jpg
  19. K4stic

    Pls help

    it's the default name of table
  20. K4stic

    Pls help

    local serialCheck = executeSQLQuery( "SELECT * FROM accounts WHERE serial = ?", getPlayerSerial( source ) ) i think this is ok
  21. K4stic

    Pls help

    then you create account it's save the serial
×
×
  • Create New...