Jump to content

Sir.BEEF

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by Sir.BEEF

  1. why are you using a command if you want it using a marker?
  2. can you please explain your problem?
  3. Thanks for your help, add me on skype: saiframahi.
  4. this isn't working. please help me guys ???????? kkkk
  5. idk how to fix that but it's instantly closing @koragg
  6. Thanks, but i kind of :Oed up in the addcommandhandler, so i was wondering how to fix it: local screenWidth, screenHeight = guiGetScreenSize(945, 736) local webBrowser = createBrowser(945, 736, false, false) function webBrowserRender() dxDrawImage(0, 0, 945, 736, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler ("onClientRender", root, function () loadBrowserURL(webBrowser, "http://www.youtube.com") end ) the command should be /youtube which i thought it should be addCommandHandler ( "youtube", Youtube)
  7. Hello guys so i've been trying to fix that bug. Please help me local screenWidth, screenHeight = guiGetScreenSize(945, 736) local webBrowser = createBrowser(945, 736, false, false) function webBrowserRender() dxDrawImage(0, 0, 945, 736, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientRender",function () loadBrowserURL(webBrowser, "http://www.youtube.com") end ) addCommandHandler("youtube", function() end ) here's a screenshot where the bug is:
  8. Do i have to fix anything else other than Pos?
  9. projectile createProjectile ( int 19 [, float posX, float posY, float posZ, float force = 1.0, element target = nil, float rotX, float rotY, float rotZ, float velX, float velY, float velZ, 3267 end bool setWeaponTarget ( weapon rocket (simple), element theTarget [, int theComponent = 255] ) bool fireWeapon ( weapon rocket (simple))
  10. Thanks man i really appreciate this. i will post it in 20 minutes or less please tell if its bugged.
  11. Thanks thats better but can you give me link of colsphere ??
  12. lol i didnt ask anyone to make a script i just want him to make it in a code so it wont be so messy. if you dont wanna help dont post.
  13. Sir.BEEF

    SharkSystem

    Hello guys, since i am learning scripting, and im learning fast. so i decided to edit a script but not just edit make it better and only for staff or certain members you choose. https://community.multitheftauto.com/index.php?p= ... s&id=12642 Skype: SaifRamahi Server Name: SAEG. If you want to report any bug please do, report here or send me on skype.
  14. can you give me it on code please...
  15. Use this: -- this function is called whenever someone types 'createmarker' in the console: function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) -- get the player's position -- create a cylindrical marker next to the player: local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then -- check if the marker was created successfully outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker )
  16. Sir.BEEF

    SAM Turrent

    Hi guys i wanted to ask how to make Sam Torrent script, where you put it on staff base to shoot players who tries to go there (We dont want anyone to see while we are talking on localchat). tell me how to start it and give me some codes please if its hard just tell me and when i get trained more ill think about it.
  17. I did the same what bonus said, his problem is not that he cant see the chat. there is an error and im not good at debugging
  18. local weapStats_ = { ['9mm'] = 0, ['silenced'] = 0, ['deagle'] = 0, ['shotgun'] = 0, ['combat_shotgun'] = 0, ['micro_smg'] = 0, ['mp5'] = 0, ['ak47'] = 0, ['m4'] = 0, ['tec-9'] = 0, ['sniper_rifle'] = 0 } function createAccount ( account ) if ( account and type ( account ) == 'string' ) then local plr = getPlayerFromAccount ( account ) local autoIP = "unknown" local autoSerial = "unknown" local weapStats = toJSON ( weapStats_ ) if plr and isElement ( plr ) then autoSerial = getPlayerSerial ( plr ) autoIP = getPlayerIP ( plr ) outputDebugString ( "NGSQL: Creating account "..account.." for player "..getPlayerName ( plr ).." (Serial: "..autoSerial.." || IP: "..autoIP..")" ) else outputDebugString ( "NGSQL: Creating account "..account.." for player N/A (Serial: None || IP: None)" ); end local today = exports['SAEGPlayerFunctions']:getToday ( ) return db_exec ( [[INSERT INTO `accountdata` (`Username`, `Money`, `Armour`, `Health`, `x`, `y`, `z`, `Skin`, `Interior`, `Dimension`, `Team`, `Job`, `Playtime_mins`, `JailTime`, `WL`, `Weapons`, `JobRank`, `GroupName`, `GroupRank`, `LastOnline`, `LastSerial`, `LastIP`, `Kills`, `Deaths`, `weapstats`, `items`, `unemployedskin`, `vip`, `vipexp`, `plrtosrvrsettings` ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );]], account, '0', '0', '100', '0', '0', '0', '0', '0', '0', 'UnEmployed', 'UnEmployed', '0', '0', '0', '[ [ ] ]', 'None', 'None', 'None', today, autoSerial, autoIP, '0', '0', weapStats, toJSON ( { } ), '28', 'None', nil, toJSON ( { } ) ) end When you finish this you go to DATA and open it with Note pad you will find every thing
  19. OMG did you finish the MySQL? when you do you go to DATA SOMETHING CALLED DATA. AND then you find every thing. just scroll down and look for thing you want
  20. Oh check the Data, open it with NotePad and you will find everything.
  21. Can you show me the script
  22. Hello guys there is a script i made recently, it is an login panel. Please if you find any report Report it here. Download Link https://community.multitheftauto.com/in ... s&id=12635 and if you need anything please skype me. SaifRamahi My server name is SAEG. {Special Thanks to: Karim Best-Killer Virus David }
  23. Yes bonus I know how to Script with SQL language and use it in MTA but, I want to know how to control MySQL to my server? to see player's data if ( tostring ( get ( "CONNECTION_TYPE" ) ):lower() == "mysql" ) then outputConsole ( "Attempting to connect as MySQL... Please wait") db = dbConnect( "sqlite","data.db" ); elseif ( tostring ( get ( "CONNECTION_TYPE" ) ):lower() == "sqlite" ) then db = dbConnect ( "sqlite", tostring(get("DATABASE_NAME")) .. ".sql" ); else error ( tostring(get("CONNECTION_TYPE")) .. " is an invalid SQL connection -- valid: mysql, sqlite" ); end if not db then print ( "The database has failed to connect") return else print ( "Database has been connected") end function db_query ( ... ) local data = { ... } return dbPoll ( dbQuery ( db, ... ), - 1 ) end function db_exec ( ... ) return dbExec ( db, ... ); end thats not all of it, but i gave you little bit of mine continue if you know how. if not try to find one in the community.
×
×
  • Create New...