Search the Community

Showing results for tags 'please'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • Open Source Contributors
    • Suggestions
  • General MTA
    • News
    • Media
    • Site/Forum/IRC/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Gang


Location


Occupation


Interests

Found 8 results

  1. I just want when someone join the server can't create only three 3 accounts that i found but it's one 1 account > bRegisteredOnce = {} function registerPlayer ( source, commandName, username, password ) if(password ~= "" and password ~= nil and username ~= "" and username ~= nil and not bRegisteredOnce[source]) then local accountAdded = addAccount(username,password) if(accountAdded) then outputChatBox("Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login",source) bRegisteredOnce[source] = true else outputChatBox("Error creating account, contact the server admin.",source) end else if bRegisteredOnce[source] == true then outputChatBox("You already registered on this server!",source) else outputChatBox("Error creating account, correct syntax: /register <nick> <pass>",source) end end end my english not good T_T I hope someone can understand me
  2. SullyDawish

    i need help with this script

    --revive script by: sRT, Richard C' Lugovoi function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if getElementData(targetPlayer, "dead") == 1 then -- if exports.global:hasMoney(targetPlayer, 500) then -- tratment cost exports.global:takeMoney(targetPlayer, 500) -- here what im tryin do charging the player $500 for the reviv else outputChatBox("you dont have eanugh money to be treated ", targetPlayer, 0, 255, 0) triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer end if targetPlayer then --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("Medic"..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has revived you", targetPlayer, 0, 255, 0) outputChatBox("you successfully revied !! "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) outputChatBox("You have been revived And charged 500$", thePlayer, 0, 255, 0) -- here what im tryin output to the treated player exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(targetPlayer, 200) then -- treatment cost exports.global:takeMoney(targetPlayer, 200) -- ^^^^^^^^^^^^ outputChatBox("You have been treated and charged 200$", targetPlayer, 0, 255, 0) -- output the cost else outputChatBox("You dont have eanugh money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. thePlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", targetPlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) Hello guys , im stuck here and i really need help . what i, tryin do is making a Medic revive . evrey thing in this script works fine untill i add the if exports.global:hasMoney(targetPlayer, 500) then -- tratment cost exports.global:takeMoney(targetPlayer, 500) -- here what im tryin do charging the player $500 for the reviv else outputChatBox("you dont have eanugh money to be treated ", targetPlayer, 0, 255, 0) ===== here is the code working with no problems at all except it wont charge target player for the revive . --revive script by: function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then if getElementData(targetPlayer, "dead") == 1 then triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer) --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("The medic "..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has been revived you", targetPlayer, 0, 255, 0) outputChatBox("You have revived "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) --if exports.global:hasItem(thePlayer, 34) then -- exports.global:takeItem(thePlayer, 34) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(thePlayer, 200) then -- treatment cost exports.global:takeMoney(thePlayer, 200) -- treatment cost outputChatBox("You have been revived and take from you 200$", targetPlayer, 0, 255, 0) -- output else outputChatBox("You dont have money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("The medic " .. targetPlayerName .. " has treat you , now your health is : " .. health .. " health.", thePlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) === im tryin charge the target player $500 for the revive and output the charge . it wont let me do it . idont know how should i do this can you guys please help me i dont have that much of experience
  3. MRThinker

    [HELP] Give Me License System

    please give me a license system for RPG server Player go to checkpoints and recive driving license Please fast give me ☺
  4. How do I create a script that allows players to choose a team and start with Specific Skins and Spawn on the specific base of the team? If anyone can help me, thank you very much.
  5. The resource starts, but the bot does not spawn. function bot () team = createTeam ("AngryBots", 255,255,255) exports [ "slothBot" ]:spawnBot ( 2002.5241699219,1546.9384765625,13.5859375, 90, 124, 0, 0, 29, "waiting", true ) end addCommandHandler("bots",bot) <meta> <info author="Falke" version="2.0.0" type="misc" name="angrybots" description="This script will add Silent Hill to San Andreas" /> <script src="server.lua" type="server" /> <include resource="slothbot" /> </meta> Why does not the bot spawn?? Please, help me! Neither the "nemesi1" script is working now (it worked when i played MTA years ago...). I don't know what is happening ;-; *nemesi1: https://community.multitheftauto.com/index.php?p=resources&s=details&id=5722
  6. Pffv me ajudem https://pastebin.mtasa.com/149221994
  7. Compiled the MTA client using the source code, and now it is necessary to disable the block of .asi scripts. For the global mod you need. Everything is already rummaged there, I just can not find it. Maybe someone already knew, please help) Sorry for my bad English
  8. viniciusMS

    Help me please

    Hello, I'm using this level system. I would like someone to help me with a script. As soon as the player climbs the level. He would win some items. And a message would appear stating that he has Went up the level. Can someone help me ? File Cliente: local sW, sH = guiGetScreenSize() local windowRank = guiCreateWindow ( (sW-500)/2, (sH-400)/2, 500, 400, "Manage Players Level System", false ) guiWindowSetSizable ( windowRank, false ) guiSetVisible ( windowRank, false) local windowRankGridList = guiCreateGridList ( 10, 28, 360, 360, false, windowRank ) local windowRankColumn = guiGridListAddColumn( windowRankGridList, "Name", 0.90 ) local windowRankEdit = guiCreateEdit( 383, 150, 100, 30, "", false, windowRank) local windowRankEdit2 = guiCreateEdit( 383, 250, 100, 30, "", false, windowRank) local windowRankButton = guiCreateButton( 383, 358, 100, 30, "Change", false, windowRank) local windowRankLabelLevel = guiCreateLabel(383, 120, 100, 20,"Level: None", false, windowRank) guiLabelSetHorizontalAlign (windowRankLabelLevel, "center") local windowRankLabelExp = guiCreateLabel(383, 220, 100, 20,"Experiencia: None", false, windowRank) guiLabelSetHorizontalAlign (windowRankLabelExp, "center") local ranksTable = { {"1","Treinamento","1000"}, {"2","Cadete Júnior","2000"}, {"3","Cadete","3000"}, {"4","Cadete Sênior","4000"}, {"5","Cadete de 1ª Classe","5000"}, {"6","Recruta","5800"}, {"7","Soldado","8100"}, {"8","Soldado Raso de 2ª Classe","11000"}, {"9","Soldado Raso","14600"}, {"10","Soldado Raso de 1ª Classe","18800"}, {"11","Especialista","23800"}, {"12","Especialista de Artilharia","29600"}, {"13","Especialista Técnico","36300"}, {"14","Especialista de 1ª Classe","44100"}, {"15","Patrulheiro","53000"}, {"16","Soldado EP","63000"}, {"17","Cabo","74500"}, {"18","Líder de Tiro","87400"}, {"19","Sargento de 3ª Classe","102000"}, {"20","Sargento de 2ª Classe","118400"}, {"21","Sargento","136700"}, {"22","Sargento de 1ª Classe","157200"}, {"23","Sargento de Apoio","180000"}, {"24","Sargento de Artilharia","205200"}, {"25","Sargento Mestre","233300"}, {"26","Primeiro Sargento","264400"}, {"27","Sargento Comandante","298700"}, {"28","Sargento de Artilharia Mestre","336500"}, {"29","Sargento Maior","378000"}, {"30","Sargento de Companhia","423700"}, {"31","Candidato a Sargento Oficial","473700"}, {"32","Sargento Oficial","528400"}, {"33","Sargento Oficial Chefe","588100"}, {"34","Sargento Oficial Chefe de 1ª Classe","653400"}, {"35","Sargento Oficial Mestre","724400"}, {"36","Intendente","801600"}, {"37","Cadete-Oficial Júnior","885500"}, {"38","Cadete-Oficial Sênior","976400"}, {"39","Aspirante","1074800"}, {"40","Segundo Tenente","1181100"}, {"41","Primeiro Tenente","1296000"}, {"42","Subtenente","1419700"}, {"43","Tenente","1552900"}, {"44","Tenente-Coronel","1696200"}, {"45","Tenente-Capitão","1849900"}, {"46","Capitão","2014800"}, {"47","Capitão 1","2191200"}, {"48","Capitão 2","2380000"}, {"49","Capitão 3","2581500"}, {"50","Coronel ","2796400"}, {"51","Brigadeiro","3025300"}, {"52","Marechal de Campo","3268800"}, {"53","Comandante","3527500"}, {"54","Alto-Comandante","3801900"}, {"55","Supremo Comandante","4092800"}, {"56","Major-General","4400600"}, {"57","Tenente-General","4726000"}, {"58","General-Marechal de Campo","5069500"}, {"59","Segundo Tenente SF","5431800"}, {"60","Primeiro Tenente SF'","6000000"}, {"61","Subtenente SF'","6568200"}, {"62","Tenente SF","7136400"}, {"63","Tenente-Coronel SF'","7704600"}, {"64","Tenente-Capitão SF","8272800"}, {"65","Capitão SF","8841000"}, {"66","Capitão 1 SF","9409200"}, {"67","Capitão 2 SF","9977400"}, {"68","Capitão 3 SF","10545600"}, {"69","Coronel SF","11113800"}, {"70","General de Exército","11692000"} } function getPlayerRankName() for i=1,70 do if getElementData(localPlayer, "level") == tonumber(ranksTable[1]) then return ranksTable[2] end end end function getPlayerRankExperience() for i=1,70 do if getElementData(localPlayer, "level") == tonumber(ranksTable[1]) then return tonumber(ranksTable[3]) end end end function mainRanks() if getElementData(localPlayer, "logedin") == true then if getElementData(localPlayer, "experience") > getPlayerRankExperience() then if getElementData(localPlayer, "level") < 70 then setElementData(localPlayer, "level", getElementData(localPlayer, "level") + 1) end end dxDrawImage ( sW/22, sH/2.8, sW/60, sH/60, "images/level/rank"..getElementData(localPlayer, "level")..".jpg" ) dxDrawText ( getPlayerRankName().." ("..getElementData(localPlayer, "level")..")",sW/65, sH/3.6, sW/0, sH/0, tocolor ( 240, 230, 140, 255 ), 1.02, "default-bold" ) dxDrawText ( "Experiência atual: "..getElementData(localPlayer, "experience"), sW/65, sH/3.27, sW/0, sH/0, tocolor ( 70, 130, 180, 255 ), 1.02, "default-bold" ) if getElementData(localPlayer, "level") < 70 then dxDrawText ( "Experiencia necessario: "..getPlayerRankExperience(),sW/65, sH/3, sW/0, sH/0, tocolor ( 70, 130, 180, 255 ), 1.02, "default-bold" ) else dxDrawText ( "O máximo foi alcançado",sW/65, sH/3, sW/0, sH/0, tocolor ( 70, 130, 180, 255 ), 1.02, "default-bold" ) end end end addEventHandler ( "onClientRender", root, mainRanks ) function toggleWindowRanks() if getElementData(localPlayer, "adminRanks") == true then if guiGetVisible(windowRank) == false then guiSetVisible(windowRank, true) showCursor(true) for k, v in ipairs (getElementsByType("player")) do if getElementData (v, "logedin") == true then local row = guiGridListAddRow ( windowRankGridList ) guiGridListSetItemText ( windowRankGridList, row, windowRankColumn, getPlayerName ( v ), false, false ) end end else guiSetVisible(windowRank, false) showCursor(false) guiGridListClear(windowRankGridList) end end end bindKey("F7", "down", toggleWindowRanks) function windowRankClick() local playerName = guiGridListGetItemText ( windowRankGridList, guiGridListGetSelectedItem ( windowRankGridList ), 1 ) if source == windowRankGridList then if guiGridListGetSelectedCount(windowRankGridList) == 1 then guiSetText(windowRankLabelLevel, "Level: "..getElementData(getPlayerFromName(playerName), "level")) guiSetText(windowRankLabelExp, "Experiencia: "..getElementData(getPlayerFromName(playerName), "experience")) else guiSetText(windowRankLabelLevel, "Level: None") guiSetText(windowRankLabelExp, "Experiencia: None") end end if source == windowRankButton then if guiGridListGetSelectedCount(windowRankGridList) == 1 then local playerName = guiGridListGetItemText ( windowRankGridList, guiGridListGetSelectedItem ( windowRankGridList ), 1 ) if guiGetText(windowRankEdit) ~= "" then setElementData(getPlayerFromName(playerName), "level", tonumber(guiGetText(windowRankEdit))) guiSetText(windowRankLabelLevel, "Level: "..getElementData(getPlayerFromName(playerName), "level")) end if guiGetText(windowRankEdit2) ~= "" then setElementData(getPlayerFromName(playerName), "experience", tonumber(guiGetText(windowRankEdit2))) guiSetText(windowRankLabelExp, "Experiencia: "..getElementData(getPlayerFromName(playerName), "experience")) end else outputChatBox("#FF0000[LEVEL SYSTEM]: #FFFFFFSelecione o Player!", thePlayer, 171, 205, 239, true) end end end addEventHandler ("onClientGUIClick", windowRank, windowRankClick)