Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --MySQL START--
- handler = mysql_connect("localhost", "root", "", "linkmania")
- if ( not handler ) then
- outputDebugString("Conexiune cu baza de date MySQL esuata!")
- else
- outputDebugString("Conexiune cu baza de date MySQL reusita!")
- end
- --MySQL END--
- --Functii START--
- --Locatie Spawn START--
- local result = mysql_query(handler, "SELECT * FROM spawn_civil WHERE ID = 1")
- function spawn()
- local row = mysql_fetch_assoc(result)
- spawnPlayer(source, row.x, row.y, row.z)
- fadeCamera(source, true)
- setCameraTarget(source, source)
- mysql_free_result(result)
- end
- addEventHandler("onPlayerJoin", getRootElement(), spawn)
- --Locatie Spawn END--
- --Functii END--
Advertisement
Add Comment
Please, Sign In to add comment