Jump to content

JohnLehn

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by JohnLehn

  1. Hello, can someone help me? When you hit the checkpoint, the menu will appear. I tried but it doesn't worked and no errors in console and debugscript 3. Thanks a lot!!! function bjcall(player, command) math.randomseed(rand()) outputChatBox("Starting Blackjack",player) double[player] = false GameOn[player] = false triggerClientEvent ( "startBJ", player, lmin) end addCommandHandler( "start", bjcall )
  2. Hello! I have the code bellow, how can i make it to teleport in vehicle? function sf (source, thePlayer) local adminname = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..adminname, aclGetGroup ( "Admin" ) ) then setElementPosition(thePlayer, -1997.923828125, 171.4658203125, 27.6875) else outputChatBox("No acces!", thePlayer, 255, 0, 0) end end addCommandHandler("gotosf", sf)
  3. Hello! I have a faction system for a Roleplay Server, made by me. I know i can use Owl Faction System, but i don't want. Bellow is my script. This is the problem: When i set a guy in a faction with [/setfactionleader <Name> <FactionID>] and he leaves, i doesn't save. And when he reconnects on server i must set him again the leader. How can i make it save? Here is my script. function makeleader (thePlayer, cmd, targetplayer, fraki) local Spielerdersoll = getPlayerFromName(targetplayer) local admin = getPlayerAccount(thePlayer) if (admin) then if getAccountData(admin, "rp.admin") == 3 then local Spieleracc = getPlayerAccount(Spielerdersoll) if (Spieleracc) then if fraki == "1" then outputChatBox("#ffffff"..targetplayer.." #ffffffis now the lider of LSPD!", thePlayer,255, 255, 0, true) outputChatBox("#990000Admin "..getPlayerName(thePlayer).." #ffffffhas promoted you to the function of LSPD leader!", Spielerdersoll, 255, 255, 0, true) setAccountData(Spieleracc, "rp.fraktion", 1) setAccountData(Spieleracc, "rp.rank", 7) setPlayerTeam(Spielerdersoll, team1) elseif fraki == "2" then outputChatBox("#ffffff"..targetplayer.." #ffffffis now the lider of Grove Street!", thePlayer,255, 255, 0, true) outputChatBox("#990000Admin "..getPlayerName(thePlayer).." #ffffffhas promoted you to the function of Grove Street leader!", Spielerdersoll, 255, 255, 0, true) setPlayerTeam(Spielerdersoll, team2) setAccountData(Spieleracc, "rp.fraktion", 2) setAccountData(Spieleracc, "rp.rank", 7) elseif fraki == "0" then outputChatBox("#ffffffYou set "..targetplayer.." #ffffffto Civilian!", thePlayer,255, 255, 0, true) outputChatBox("#990000Admin "..getPlayerName(thePlayer).." #ffffff has demoted you to Civillian.", Spielerdersoll, 255, 255, 255, true) setAccountData(Spieleracc, "rp.fraktion", 0) setAccountData(Spieleracc, "rp.rank", 0) end else outputChatBox("Player not found!", thePlayer, 255, 0, 0) end else outputChatBox("You are not an admin!", thePlayer, 255, 0, 0) end end end addCommandHandler("setfactionleader", makeleader)
  4. NPC is that ped in Gta San Andreas who is walking on streets. I wanted the script for Emergency Server. Thanks for help!
  5. Hi! Can someone tell me how can i make this ? : When you aim a NPC with a gun it will appers in front of NPC a checkpoint, when you enter him, it will show you a small GUI with some buttons, like, " Check ID " or things like this. Please
  6. Hi ! I want to make a trunk system. I have a question, how can i make this : When the player entered in a car and then get out, a red marker will be spawned at the trunk. If you are entering the marker you will get a simple panel ( I have the panel ). Can you please, help me ?
  7. Thanks ! It worked ! How can i make it to be only one number per user, when i type /d <text> look how it is working: [Unit 46]BigNighT: s [Unit 36]BigNighT: f [Unit 6]BigNighT: s
  8. function dchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then outputChatBox ( "#0066cc[Unit ".. numbers .."]#0066cc".. getPlayerName ( thePlayer ) ..": #0066cc".. message, player, 255, 255, 255, true ) end end else outputChatBox ( "#838b83Error!", thePlayer, 255, 255, 255, true ) end end addCommandHandler ( "d", dchat ) function randomnum(player) local numbers = tostring(math.random(1,100)) outputChatBox ( " The random number is ".. numbers ..". ", player ) end When you say something on chat /d, i want to appear [Unit (random number)] <playername> : <Text> The error with this code is : Error: Dispatch\Server.Lua:6 attept to concatentate global 'number' (a nil value) Can someone help me ? Please ?
  9. Ok, i did it, now what i must to use ? I want :Just click on the car and get a OutPutChatBox: You don't have necessary level to use this car !
  10. Hi! Can someone tell me how can i make this : A red marker and when you are entering you will get a panel. You choose your vehicle by account level. It will be a list of vehicles. Let's say infernus. You need level 1 to spawn it. To spawn it you need to press the button "Spawn". How can i do this ?
×
×
  • Create New...