flirtyboy23
Members-
Posts
55 -
Joined
-
Last visited
Everything posted by flirtyboy23
-
function spawnWasted(player) repeat until spawnPlayer ( player, 1606.76, 1816.60, 10.82, 180, math.random(19,25) ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam" class="kw6">setPlayerTeam (player, nil) takePlayerMoney ( player, 150 ) end addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end ) why is it that undeath it changes skin can some one help me fix it to be same skin u died with
-
function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", true) -- define new X and Y positions for the first label X = 0.0825 Y = 0.2 -- define new Width and Height values for the first label Width = 0.25 Height = 0.25 -- create the first label, note the final argument passed is 'wdwLogin' meaning the window -- we created above is the parent of this label (so all the position and size values are now relative to the position of that window) guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin) -- alter the Y value, so the second label is slightly below the first Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) -- set the maximum character length for the username and password fields to 50 guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Log In", true, wdwLogin) -- make the window invisible guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () -- create the log in window and its components createLoginWindow() -- output a brief welcome message to the player outputChatBox("Welcome to My MTA:SA Server, please log in.") -- if the GUI was successfully created, then show the GUI to the player if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else -- if the GUI hasnt been properly created, tell the player outputChatBox("An unexpected error has occurred and the log in GUI has not been created.") end -- enable the players cursor (so they can select and click on the components) showCursor(true) -- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening guiSetInputEnabled(true) end ) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function clientSubmitLogin(button,state) if button == "left" and state == "up" then -- get the text entered in the 'username' field local username = guiGetText(edtUser) -- get the text entered in the 'password' field local password = guiGetText(edtPass) -- if the username and password both exist if username and password then -- trigger the server event 'submitLogin' and pass the username and password to it triggerServerEvent("submitLogin", getRootElement(), username, password) -- hide the gui, hide the cursor and return control to the player guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else -- otherwise, output a message to the player, do not trigger the server -- and do not hide the gui outputChatBox("Please enter a username and password.") end end end its just the one from wiki i
-
Error : WARNING: Bad argument @ 'addEventHandler' (string-defined function)
-
addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) eof end Error:WARNING: Loading script failed: LoginP\loginclient.lua:68: '=' expected near 'end' what to do
-
giveWeapon (playerWhoUses, 3, 1, true) setPlayerNametagText (playerWhoUses, "[COP]" .. getPlayerName (playerWhoUses)) setPlayerSkin ( thePlayer, 280 ) whats wrong wid third line ? Error :Bad Argument @ 'setElementModel'
-
=========================================================== = Multi Theft Auto: San Andreas v1.0.4 =========================================================== = Server name : Private Test Server = Server IP address: = Server port : 22003 = = Log file : ..reas/server/mods/deathmatch/logs/server.log = Maximum players : 32 = MTU packet size : 1264 = HTTP port : 22005 =========================================================== [2011-02-13 13:54:03] ERROR: Couldn't find meta.xml file for resource 'ATM ' [2011-02-13 13:54:03] Loading of resource 'ATM ' failed [2011-02-13 13:54:06] ERROR: Couldn't find meta.xml file for resource 'SHIT TAXI & ' [2011-02-13 13:54:06] Loading of resource 'SHIT TAXI & ' failed [2011-02-13 13:54:10] Resources: 223 loaded, 0 failed [2011-02-13 13:54:11] Querying game-monitor.com master server... success! [2011-02-13 13:54:11] Starting resources.... [2011-02-13 13:54:11] ERROR: Unable to start resource sql; Start up of resource cancelled by script [2011-02-13 13:54:11] ERROR: Unable to start resource irc; Start up of resource cancelled by script [2011-02-13 13:54:11] ERROR: Unable to start resource players; Start up of resource cancelled by script [2011-02-13 13:54:11] ERROR: Unable to start resource vehicles; Start up of resource cancelled by script [2011-02-13 13:54:11] ERROR: Unable to start resource interiors; Start up of resource cancelled by script [2011-02-13 13:54:11] ERROR: Unable to start resource items; Start up of resource cancelled by script [2011-02-13 13:54:13] ERROR: Unable to start resource shops; Start up of resource cancelled by script [2011-02-13 13:54:13] ERROR: Unable to start resource maps; Start up of resource cancelled by script [2011-02-13 13:54:13] ERROR: Unable to start resource teleports; Start up of resource cancelled by script [2011-02-13 13:54:14] ERROR: Unable to start resource bank; Start up of resource cancelled by script [2011-02-13 13:54:14] ERROR: Unable to start resource factions; Start up of resource cancelled by script [2011-02-13 13:54:14] ERROR: Unable to start resource 3dtext; Start up of resource cancelled by script [2011-02-13 13:54:14] Server started and is ready to accept connections! [2011-02-13 13:54:14] _ _ _ [2011-02-13 13:54:14] | | | (_) [2011-02-13 13:54:14] _ __ ___ | |_ __ _ _ __ __ _ _ __ __ _ __| |_ ___ ___ [2011-02-13 13:54:14] | '_ ` _ \| __/ _` | | '_ \ / _` | '__/ _` |/ _` | / __|/ _ \ [2011-02-13 13:54:14] | | | | | | || (_| | | |_) | (_| | | | (_| | (_| | \__ \ __/ [2011-02-13 13:54:14] |_| |_| |_|\__\__,_| | .__/ \__,_|_| \__,_|\__,_|_|___/\___| [2011-02-13 13:54:14] | | [2011-02-13 13:54:14] |_| v1.00 [2011-02-13 13:54:14] Server stopped! [2011-02-13 13:54:14] Stopping resources................... [2011-02-13 13:54:14] Closing SQLite3 database [2011-02-13 13:54:14] Closing SQLite3 database Why do i keep getting this D;
-
aww comon man Youll get great grattitude by members :] but really what to do after ?
-
Okay I added it now what ... (u got skype or msn ?? )
-
I TRY TO RUN THE WHOLE THING IT FAILS EPICALLY I READ ( sorry caps ) the installation n it says somethign about MySql im completely lost <settings> <!-- MySQL Configuration --> <setting name="@sql.user" value="username"/> <setting name="@sql.password" value="password"/> <setting name="@sql.database" value="database"/> <setting name="@sql.hostname" value="localhost"/> <setting name="@sql.port" value="3306"/> <!-- Only use this on Linux if the normal connection does fail even though using the correct username & password. --> <setting name="@sql.socket" value="/var/run/mysqld/mysqld.sock"/> <!-- Registration --> <setting name="@players.allow_registration" value="1"/><!-- Change to 0 to disable registration and show an error message --> <setting name="@players.registration_error_message" value="Edit this to show the user a message when registration is disabled"/> </settings> What am i suppose to do hpw dp i know value's ????
-
Can someone help me on how to make On player death spawnb at hospital depending in area so if in LV spawn at lv , in Ls spawn at ls , in sf spawn at sf etc
-
i really fail at gui 's
-
How to make a gui than when u go in marker it brings up a menu to choose a car EX ; SANCHEZ,BMX,MOUNTAINBIKE
-
I domnt know but i have uninstalled mta over n over but i keep getting this FAIL this happens before and after downloading files so its not the dl Help me fix this please
-
binds are find it just dosent work
-
Idk if this is for everybody but my nitro dosent work on any server not even in a race server D:
-
Okay so i have heard that MTA paradise is a gamemode How do i get it ?
-
How do i put a restriction on Pick ups like i wanna Add a M4 in area 51 for army but restrict it to military only NoobFriendly plz ansd thanx
-
NVM u Genious your Great
-
it didnt move ? gate = createObject(971, 96.57, 1919.40, 20.75585, 0, 0, 270) function moveGate(player) team = getPlayerTeam(player) if team then teamName = getTeamName(team) if teamName == "Military" then moveObject(gate, 5000, 97.01, 1915.55, 18.17) end end end addCommandHandler("move",moveGate)
-
now what aboyut the team part ?
-
Is it possible to make this Noob Friendly I mean like brand new to lua friendly plz
