-
Posts
708 -
Joined
-
Last visited
Everything posted by K4stic
-
Hello this is Tutorial of Advansed kill script ( Server-Side script ) 1. creating table local antispam = {} -- table 2. we use with command name addCommandHandler("kill", -- command 3. We make function function ( player ) -- function 4. an element to get players wanted level local getwantedlevel = getPlayerWantedLevel ( player ) -- get's Players wanted Level 5. We use table to make Player to can't use multible time the /kill ( /kill antispam with other words ) if player want use it before of 2 mins they will see the message if ( antispam[getPlayerSerial(player)] ) and ( getTickCount()-antispam[getPlayerSerial(player)] < 120000 ) then outputChatBox( "You can't use /kill Multible Times only once every 2 minutes!", player, 225, 0, 0 ) -- Using Table to make Antispam and can use it every 2 mins if player have realy use it it will send him message 6. checking wanted level to wanted players can't use kill ( to reduse abusing ) and if player have more that 0 stars then he can't use /kill elseif ( getwantedlevel > 0 ) then -- check if player have more that 0 stars outputChatBox( "You can't use /kill while Wanted", player, 225, 0, 0 ) -- send a message if he have more that 0 stars 7. if player use /kill after 2 mins and not wanted them else antispam[getPlayerSerial( player )] = getTickCount() -- to refresh time if he want use the /kill again setTimer( killPed, 5000, 1, player ) -- setTimer to froze player for 5 sec setElementFrozen ( player, true ) -- set's Player Zrozen outputChatBox( "You'll die in 5 seconds!", player, 255, 0, 0 ) -- Send to player the Message Final Code local antispam = {} -- table addCommandHandler("kill", -- command function( player ) local getwantedlevel = getPlayerWantedLevel ( player ) -- get's Players wanted Level if ( antispam[getPlayerSerial(player)] ) and ( getTickCount()-antispam[getPlayerSerial(player)] < 120000 ) then outputChatBox( "You can't use /kill Multible Times only once every 2 minutes!", player, 225, 0, 0 ) elseif ( getwantedlevel > 0 ) then outputChatBox( "You can't use /kill while Wanted", player, 225, 0, 0 ) else antispam[getPlayerSerial( player )] = getTickCount() -- to refresh time if he want use the /kill again setTimer( killPed, 5000, 1, player ) -- setTimer to froze player for 5 sec setElementFrozen ( player, true ) -- set's Player Zrozen outputChatBox( "You'll die in 5 seconds!", player, 255, 0, 0 ) -- Send to player the Message end -- close the if,elseif,else end -- close the function ) -- to close the command Meta .Xml of /kill Script <meta> <info author="CASTIEL" version="1.0" type="script" /> <script src="script.lua" type="server" /> </meta> Enjoy & Test it! Don't forget to Comment.
-
1. go Admin folder 2. after that Open conf folder 3. after 2nd step open the messages.xml 4. replace lines 15-16 with this <all>$player has been banned$by_admin_4all. $data $data2 </all> <log>ADMIN: $admin has banned $player $data $data2</log> and lines 23-24 with this <all>$player has been muted$by_admin_4all. $data $data2 </all> <log>ADMIN: $admin has muted $player $data $data2</log> 5. save it 6. Try and enjoy it
-
Fond Text's maked for English words & grammat
-
Guys you can use this Compiler https://forum.multitheftauto.com/viewtopic.php?f=108&t=64860
-
function win( ammo, killer, weapon, bodypart ) if ( killer and getElementType( killer ) == "player" and killer ~= source ) then local H = tonumber( getElementData( killer, "XP" ) ) or 0 local S = getElementData( killer, "Level" ) local killer1 = getPlayerName( killer ) local noob = getPlayerName( source ) local X = math.random( 5, 70 ) setElementData( killer, "XP", H + X ) local H = H + X if ( H == 100 ) then setElementData(killer, "Level", "Lvl 1") elseif ( H == 400 ) then setElementData(killer, "Level", "Lvl 2") elseif ( H == 600 ) then setElementData(killer, "Level", "Lvl 3") elseif ( H == 800 ) then setElementData(killer, "Level", "Lvl 4") elseif ( H == 1000 ) then setElementData(killer, "Level", "Lvl 5") elseif ( H == 1200 ) then setElementData(killer, "Level", "Lvl 6") elseif ( H == 1400 ) then setElementData(killer, "Level", "Lvl 7") elseif ( H == 1600 ) then setElementData(killer, "Level", "Lvl 8") elseif ( H == 1800 ) then setElementData(killer, "Level", "Lvl 9") elseif ( H == 2000 ) then setElementData(killer, "Level", "Lvl 10") elseif ( H == 2200 ) then setElementData(killer, "Level", "Lvl 11") elseif ( H == 2400 ) then setElementData(killer, "Level", "Lvl 12") elseif ( H == 2600 ) then setElementData(killer, "Level", "Lvl 13") elseif ( H == 2800 ) then setElementData(killer, "Level", "Lvl 14") elseif ( H == 4000 ) then setElementData(killer, "Level", "Lvl 15") elseif ( H == 4200 ) then setElementData(killer, "Level", "Lvl 16") elseif ( H == 4400 ) then setElementData(killer, "Level", "Lvl 17") elseif ( H == 4600 ) then setElementData(killer, "Level", "Lvl 18") elseif ( H == 4800 ) then setElementData(killer, "Level", "Lvl 19") elseif ( H == 4900 ) then setElementData(killer, "Level", "Lvl 20") elseif ( H == 7000 ) then setElementData(killer, "Level", "Lvl 21") elseif ( H == 9000 ) then setElementData(killer, "Level", "Lvl 22") elseif ( H == 15999 ) then setElementData(killer, "Level", "Lvl 23") end end end addEventHandler( "onPlayerWasted", root, win) function onLogin ( ) local account = getAccountName ( getPlayerAccount ( source ) ) if ( account ) then setElementData(source, "Level", getAccountData(account, "LV") or "0" ) setElementData(source, "XP", getAccountData(account, "EXP") or "0" ) end end addEventHandler ("onPlayerLogin", root, onLogin) function saveData(quitType, reason, responsibleElement) local theAccount = getPlayerAccount( source ) if (theAccount and not isGuestAccount(theAccount)) then setAccountData (theAccount, "LV", getElementData(source, "Level")) setAccountData (theAccount, "EXP", getElementData(source, "XP")) end end addEventHandler ("onPlayerQuit", root, saveData ) addEventHandler ("onPlayerLogout", root, saveData ) This Must work You was make some fails :3 at save and load data and at function win
-
1. We not make for you Scripts2. isPlayerDead getPlayerCount getAlivePlayers getDeadPlayers
-
i just call you friendly ("Bro") not the Bro like Brother
-
BuDyA This is realy Cool and Pro Map if you will start make new Vol just Good luck
-
ask that on RoS Forum please
-
relax Bro
-
The Best way is use Database with Your Site/forum MySQL like do and FFs use: dbConnect dbExec dbQuery
-
Fabioxps you post only the code -.-" Explain please what's is your Problem with it and what errors show the DebugScript 3
-
Go to old one Admin go to folder server and copy file admin_acl.lua Then Playe it in Admin2/server/ Restart resource and you ready
-
Please use other uploder
-
Map is Perfect for like 3 years old
-
Hello MTAsa Community i don't know what script to make please give some ideas
-
This Code: local screenWidth,screenHeight = guiGetScreenSize() addEventHandler("onClientResourceStart", resourceRoot, function() myScreenSource = dxCreateScreenSource ( screenWidth, screenHeight ) end ) function cleanmyscreen() if ( myScreenSource ) then dxUpdateScreenSource( myScreenSource ) dxDrawImage( screenWidth - screenWidth, screenHeight - screenHeight, screenWidth, screenHeight, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true) end end function tooglecleanmyscreen () enabled = not enabled if ( enabled ) then addEventHandler( "onClientRender", root, cleanmyscreen) else removeEventHandler( "onClientRender", root, cleanmyscreen) end end bindKey ("r", "down", tooglecleanmyscreen) it's hide all screen hud,MTA version etc just start resource and press r (Remember it's Client side)
-
agree
-
intro was very Pro and Map
-
[DM] AbodyRulez ft. WW - Dark Glare II [Official Release]
K4stic replied to -ffs-AbodyRulez's topic in Showroom
Cool map i like it -
Every week we Uploading 1 script. Avaible simple,Advanced and hard scripts,every script is uncompiled With Download our Scripts you agree with Temp to no Remove our Credits and no Upload it as your Site Link: http://revolution-scripts.com Owner: xXMADEXx CO-Owner: CASTIEL Main Developers: xXMADEXx and CASTIEL
-
i don't think that you can replace CJ skin because for CJ skin have make lot clothes and etc
-
This is Realy Awesome map i no have words like always you make one map better than previus with Pro and Unique style and Map
-
i have one simple question how we can help you without code?