Jump to content

GuyFromPast

Members
  • Posts

    33
  • Joined

  • Last visited

GuyFromPast's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Is it possible to make it ignore upper letters ? like if the word is HELLO then its same as hello and will find same result... thanks for any kind of help
  2. function ResourceStart() executeSQLCreateTable("SkinID", "serial STRING,SkinID INT") end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), ResourceStart) function ClientReady(g_player) local serial = getPlayerSerial(g_player) local playername = getPlayerName(g_player) CheckPlayerChicken = executeSQLSelect ( "valimusID", "serial", "serial = '" .. serial .. "'" ) if ( type( CheckPlayerChicken ) == "table" and #CheckPlayerChicken == 0 ) or not CheckPlayerchicken then executeSQLInsert ( "SkinID", "'"..serial.."','180'" ) end end addEvent("onClientReady",true) addEventHandler("onClientReady",getRootElement(),ClientReady) function skinchange(source,SkinID) setElementModel(source, SkinID) local playername = getPlayerName(source) local serial = getPlayerSerial(source) executeSQLUpdate ( "skinchangee", "SkinID = '"..SkinID.."'","serial = '" .. serial .. "'") setElementData ( source ,"pla.number",SkinID,true) end addEvent("onSkinChange",true) addEventHandler("onSkinChange",getRootElement(),skinchange) Any ideas how to fix it ?
  3. removed it and still not working when i press f7 only mouse shows up function open() if guiGetVisible ( GUIEditor_Window[1] ) then -- if it is, we hide it guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) end end bindKey("F7","down",open)
  4. GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} function startGUI() local money = getElementData(getLocalPlayer(), "data.money") GUIEditor_Window[1] = guiCreateWindow(361,207,463,497,"Blagg" ,false) GUIEditor_TabPanel[1] = guiCreateTabPanel(36,46,393,401,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Information",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(26,30,126,28,"MONEY"..money,false,GUIEditor_Tab[1]) guiSetVisible(GUIEditor_Window[1],false) end any idea why this gui not working ? if i press hotkey then only mouse comes but no window
  5. tried to add source or account there >.< no luck any suggestions what i should add there then ?
  6. function changeCarLightsColor ( thePlayer, command, red, green, blue, zoo ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if ( not theVehicle ) then return outputChatBox( "You don't have vehicle!" ) end red = tonumber ( red ) green = tonumber ( green ) blue = tonumber ( blue ) -- check if the colour values for red, green and blue are valid if red and green and blue then local color = setVehicleHeadLightColor ( theVehicle, red, green, blue ) if(not color) then outputChatBox( "Failed to change vehicle lights color" ) else outputChatBox ( "Vehicle lights color changed sucessfully" ) end else outputChatBox( "error shit" ) end end addCommandHandler ( "cl", changeCarLightsColor ) function onSpawn (zoo,thePlayer) local theVehicle = getPedOccupiedVehicle ( thePlayer ) local accountData = getAccountData (zoo, "horse") if (accountData) then local G = getAccountData (zoo, "rabbit") local R = getAccountData (zoo, "horse") local B = getAccountData (zoo, "bear") outputChatBox("getting data blablashit") egg1 = G egg2 = R egg3 = B setVehicleHeadLightColor ( theVehicle, egg1, egg2, egg3 ) end end addEventHandler ("onPlayerSpawn", getRootElement(), onSpawn) function onDead () account = getPlayerAccount (source) if (account) then setAccountData (account, "horse", G) setAccountData (account, "rabbit", R) setAccountData (account, "bear", B) outputChatBox("setting data blabla") end end addEventHandler ("onPlayerWasted", getRootElement(), onDead) Hello, its me again.. as u know im not very talented scripter and i need your help again >.< theres command (cl) that changes your carheadlightcolor i want to make it save like when u set ur carheadlightcolor red then it saves it when u die and when u spawn it restores it atm im getting waring Bad arugment @ 'getAccountData' any fixes ?
  7. poor me sorry doublepost ok theres what i did.. tell me please what i did wrong because its not workin on top i added lock = {1} unlock = {0} in function i added lock[source] = {1} setTimer(function() lock = {0} end, 6000, 1)
  8. ok trying to do something.. and if lock = {1} then it attaches to command automatically ? i mean it locks command or i have to define more like if lock == {1} then blabla btw i figured out why u dont want to help me because if u dont help me then i stay here longer and u like me probably
  9. yeah i understood it but maybe more tips ? like add timers or so ?
  10. try to search anti-spam or anti-flood.. it says nothing found
  11. modify handler ? so u wanna just say its impossible to make this script if ur not lua pro right -.- so many players have to continue playing with command flooders.. i guess every server owner checked this topic ok seems like i got my answers
  12. page not found.. maybe reupload ?
×
×
  • Create New...