Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. Wei

    SQL Question

    *facepalm* I wan't it from SQL...
  2. Wei

    SQL Question

    executeSQLCreateTable ( "test", "username TEXT" ) function addInfoToSQL() local sourcename = getPlayerName ( source ) result = executeSQLSelect ( "test", "username", "username = '" .. getAccountName(getPlayerAccount(source)) .. "'" ) if ( result == false ) then outputChatBox ( "This is your first time here! Welcome " .. sourcename .. "!", source ) executeSQLInsert ( "players","'" .. getAccountName(getPlayerAccount(source)) .. "'" ) else outputChatBox ( "Welcome back " .. ??? .. "!", source ) -- what should I put here to get player username ? executeSQLUpdate ( "test", "username = '" .. sourcename .. "'" ) end end addEventHandler ( "onPlayerLogin", getRootElement(), addInfoToSQL) Look at line 10
  3. Wei

    zombie kill

    I've fixed problem now... Thanks...
  4. createTeam("teamName", red, green, blue) teamName must have "", and the red, green, blue are nubers from 0 to 255
  5. Wei

    Help No GUI

    function loginHandler(username,password) -- check that the username and password are correct if username == "user" and password == "apple" then -- the player has successfully logged in, so spawn them if (client) then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome to My Server.", client) end else -- if the username or password are not correct, output a message to the player outputChatBox("Invalid username and password. Please re-connect and try again.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) this will only login you if your username is user and password apple... function loginHandler(username,password) -- check that the username and password are correct if username and password then -- the player has successfully logged in, so spawn them if (client) then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome to My Server.", client) end else -- if the username or password are not correct, output a message to the player outputChatBox("Invalid username and password. Please re-connect and try again.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) and add event handler to onClientResourceStart to open window EDIT: There are many more wrong things...
  6. Wei

    Where

    Thanks.
  7. Wei

    Where

    Where can I find this: #1 #2
  8. secund argument in outputChatBox must be root....
  9. Wei

    zombie kill

    ok make it work where is some picture ? to use it
  10. Wei

    zombie kill

    Yeah I know but I don't have it there
  11. Wei

    zombie kill

    how to load it ?
  12. Wei

    zombie kill

    I have empty
  13. Wei

    zombie kill

    Why I don't have definition in map editor
  14. Wei

    zombie kill

    Yeah. I will do that. I thought that there is a easier way. Thanks anyway.
  15. Wei

    zombie kill

    but zombies can spawn outside of col shape. I wanna have them in col shape only
  16. Wei

    zombie kill

    bump. What's the easiest way to have peds only inside col shape ?
  17. Wei

    Where

    thanks !!!
  18. Wei

    Where

    Thanks and I don't know nothing about race where I can change that player can respawn. not when player dies he can only spectate.
  19. Wei

    Where

    where is base.lua and I don't know nothing about race where I can change that player can respawn. not when player dies he can only spectate.
  20. Wei

    BusJob.....

    It's easyer for me (I'm not pro)
  21. Wei

    Where

    Thanks !
  22. If you mean hex codes then Got to admin in server. > Resources > Scoreboard > Settings > Allow colorcoded names > change it to true.
×
×
  • Create New...