
Chris!i!
Members-
Posts
213 -
Joined
-
Last visited
Everything posted by Chris!i!
-
Thanks it worked.
-
It didnt work NssoR And prestege, it's only for 1 car ID 491. I want it to get 5 hp every 5 seconds, 5 hp = 50 in mta scripting. I dont want the vehicle to be dmg proof.
-
That's completely wrong, it wont work, + tested it. What i want is that i don't want the vehicle to get more than 1000 HEALTH
-
function HEALTH ( ) for _,v in pairs(getElementsByType("vehicle")) do if getElementModel(v) == 491 then setElementHealth ( v, getElementHealth(v) + 50 ) end end end setTimer(HEALTH, 5000, 0) So vehicle's health is going higher then the maximum i tried 2 ways to fix but failed, any helps.
-
So i want any script from community made by you, any Okay so since i dont know in handling etc. I want a script that edits a car OR makes all cars fast, i will edit the rest to make it for 1 car only, seriously i dont know anything about handling functions like engineType sh4t idk anything
-
Im sorry i dont use numbers thing, just /sms part of name msg Thanks xXMADEXx for your help.
-
GUIEditor = { label = {}, button = {}, window = {}, scrollbar = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 644) / 2, (screenH - 597) / 2, 644, 597, "CST CnR - Messenger V1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.90) guiSetVisible(GUIEditor.window[1], false) guiSetInputMode("no_binds_when_editing") players = guiCreateGridList(9, 57, 203, 403, false, GUIEditor.window[1]) column = guiGridListAddColumn(players, "Players", 0.9) GUIEditor.button[1] = guiCreateButton(9, 470, 203, 33, "Clear selected conversation", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(230, 555, 404, 32, "Close Window", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 513, 203, 33, "Mute Player", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(220, 22, 414, 524, "CST messenger is the default messenger app for normal messages to\nplayers.\n\n\nTo start a conversation with a online player, double click on the\nonline player name in the gridlist at the left side. Once you double\nclick a name, the conversation will start in here.\n\n\nYou can also start a single conversation by just a single command;\n/sms PartOfPlayerName messageHere\n\n\nThis will start your conversation with provided player. You can\nreply to a message by the following command; /re messageHere\n\n\nTo delete any conversation, select the online player you wanted\nyou wanted to delete the conversation with, and press clear\nselected conversation button.", false, GUIEditor.window[1]) search = guiCreateEdit(9, 24, 203, 28, "", false, GUIEditor.window[1]) setElementID(search, "CSTmessenger.SearchEdit") guiGridListSetSortingEnabled( players, false ) setElementID(players, "CSTmessenger.GridList") guiGridListSetSelectionMode( players, 2 ) send = guiCreateEdit(218, 512, 416, 33, "", false, GUIEditor.window[1]) sms = guiCreateGridList(576, 108, 416, 485, false, GUIEditor.window[1]) guiSetVisible(sms, false) guiSetVisible(send, false) function guiToggleVisible ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor (false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor (true) end end bindKey ( "F10", "down", guiToggleVisible ) function closeShit ( ) if source == GUIEditor.button[2] then guiSetVisible (GUIEditor.window[1], false) showCursor(false) end end addEventHandler ( "onClientGUIClick", GUIEditor.button[2], closeShit ) function setList() for k, i in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( players ) local playerTeam = getPlayerTeam( i ) guiGridListSetItemText( players, row, 1, getPlayerName( i ), false, false ) if ( playerTeam ) then local r, g, b = getPlayerNametagColor( i ) guiGridListSetItemColor( players, row, 1, r, g, b) end end end addEventHandler("onClientResourceStart", getRootElement(), setList) function searchPlayer () guiGridListClear ( players ) local text = guiGetText ( search ) if ( text ~= "" ) then for id, playeritem in ipairs ( getElementsByType( "player" ) ) do row = guiGridListAddRow( players ) --local playerTeam = getPlayerTeam( playeritem ) if ( string.find ( string.upper( getPlayerName ( playeritem ) ), string.upper( text ), 1, true ) ) then guiGridListSetItemText( players, row, 1, getPlayerName( playeritem ), false, false ) --if ( playerTeam ) then -- local r, g, b = getPlayerNametagColor( playeritem ) guiGridListSetItemColor( players, row, 1, 255, 255, 255 ) end end else for id, playeritem in ipairs ( getElementsByType ( "player" ) ) do row = guiGridListAddRow( players ) --local playerTeam = getPlayerTeam( playeritem ) guiGridListSetItemText( players, row, 1, getPlayerName( playeritem ), false, false) --if ( playerTeam ) then -- local r, g, b = getPlayerNametagColor( playeritem ) guiGridListSetItemColor( players, row, 1, 255, 255, 255 ) end end end addEventHandler( "onClientGUIChanged", search, searchPlayer, false ) function toggle() if ( guiGetVisible( GUIEditor.window[1] ) ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) else guiGridListClear( players ) setList() showCursor( true ) guiSetVisible( GUIEditor.window[1], true ) end end addEvent( "showGUIEditor.window[1]Info", true ) addEventHandler( "showGUIEditor.window[1]Info", localPlayer, toggle ) function refreshall() guiGridListClear( players ) setList() end So i've been stuck in here, i want that when someone double clicks on "players" gridlist the second gridlist and the second edit box will be shown up and the SMS system i want it in a gridlist so any helps please?
-
Just stop it, a server cant be hacked expect getting it's host password or vps password or whatever password.
-
Sorry but i dont understand anything of MySQL or database, What i did is that i got this script from my friend.
-
We don't have an database account @S.L.C We are trying to make one but ok listen, i'll explain everything here. We bought our vps from ovh.com They gave us our control panel info ONLY. And to create a database account we need to create another account, and we cant use our control panel account, i created another account for managing and creating a database account but the problem is that the new account doesnt have anything... like our vps to edit it or manage it.. So we got a big problem stuck on this for 6 days, we got a person who knows in database and he couldnt make it since he needs our database name database hostname database password And we dont have any of these So we are trying to link those 2 accounts so we can host a database on our vps, but couldnt fuck this
-
Yes please, give me ur skype name.
-
local sql = dbConnect( "mysql", "dbname=ingame;host=127.0.0.1;port=22003", "root", "24835100a") dbExec ( sql, "CREATE TABLE IF NOT EXISTS selling ( userid TEXT, item TEXT, amount NUMBER, price NUMBER )" ) function getConnection() return sql end function query(...) if isElement(sql) then local qh = dbQuery(sql,...) return dbPoll(qh,-1) end return false end function querySingle(str,...) if not str:find("LIMIT 1") then str = str.." LIMIT 1" end local result = query(str,...) if result then return result[1] end return false end function exec(str,...) if isElement(sql) then return dbExec(sql,str,...) end return false end function doesColumnExist(aTable,column) local theTable = query("DESCRIBE `??`",aTable) if theTable then for k, v in ipairs(theTable) do if v.Field == column then return true end end end return false end function creatColumn(aTable,aColumn,aType) if aTable and column and aType then return exec("ALTER TABLE `??` ADD `??` ??",aTable,aColumn,aType) end end WARNING: mysql.lua:4: Bad argument @ 'dbExec' [Expected db-connection at argument 1, got boolean] This script is preventing another scripts to not work, please i need help.
-
nothing worked, stayed as it is, also i downloaded a file called mta-mysql.so didnt work too ... ccw you know these things come over here and help me
-
apt-get install mysql-server Installed this, it worked and said [ ok ] and stuff .. idk what it was spammy, I'll try to restart the server and check my scripts if they will work.
-
x64 and Debian 7.0 (Wheezy)
-
wtf is that screen? Also i download a file libmysql.so.16 from mta sa wiki, for MySQL, it didnt work, there is some scripts that didnt even work, it outputs SQL errors, like Bank and Trading and groups stuffs.
-
local personToReceive = getPlayerFromName(to) -- We get the player from the name if personToReceive then-- if the person in the above line exists, then continue outputChatBox("PM --> #FFFFFF "..getPlayerName(personToRecieve)..": ".. text, player, 255,0,0,true) local personToReceive = getPlayerFromName(to) and u typed in the outputChatBox getPlayerName(personToRecieve) it must be getPlayerName(personToReceive)
-
I remember its a command on putty, what is it??
-
?? Title ?? I wont leave my PC open 24/24 since its on putty, how to make it online 24/7 ? I've installed MySQL in my server and still resources doesnt work, some people told me i need phpmyadmin what is this?
-
function pmHandler(player, _, to, ...) -- create function. local text = table.concat({...}," ") local personToReceive = getPlayerFromName(to) -- We get the player from the name if personToReceive then-- if the person in the above line exists, then continue outputChatBox("PM --> #FFFFFF "..getPlayerName(personToReceive)..": ".. text, player, 255,0,0,true) outputChatBox("[PM] "..getPlayerName(player).."#FFFFFF: ".. text, personToReceive, 255,0,0,true) end end addCommandHandler ( "pm", pmHandler ) -- attach handler to function you typed personToRecieve at first output.
-
And even if i pressed 2 times, it wont be unblocked again ..