Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssDuelsystemfixed (duelsystem2)

Category:script
Author(s):khadeer143
Downloads:297
Rate:You need to be logged in to vote
Rating:5 (1 Vote)
Description:
hello guys today im releasing fixed version of my duel-system which was uploaded past years which was a basic version https://community.multitheftauto.com/index.php?p=resources..p;id=15059

cmnds to start duel : /duel <betamount> <playername> ,to accept duel use /acceptduel .
whats new ?
added duel restrictions player can"t duel with same player who is already in duel.
added betmoney system. winner will get bet amount money.
added total rounds to play for completeing duel.
added new spawns ,re-spawn positions on died it respawn to orginal positions were you started duel.
added interiors and random dimension so that players can duel anytime .
added setting.lua were you can change maximum rounds for duel,changing weapons.
added score counts of duel like1-1,2-1 till maximum rounds the winner will get bet money .
added server output msg to output chat msg winner nick and betmoney .
disable using of other weapons which is not listed in setting.lua.
disable using of vehicles in duel areas.

you can find this in setting.lua to change rounds and weapons :
s_WeaponIDs = {[31]=1000,[28]=1000}(weapons to be used)
s_MaxRounds = 5(max rounds for duel)

you have to paste below code to respawns work go to gamemode folder under play folder gameplay\ play\broph.lua file :
local function onWasted()

if exports['duelsystem2']:isPlayerInDuel(source) then
return false
end
local t = tonumber(get("playerRespawnTime")) or 5000
setTimer(spawn,(t > 50 and t or 50),1,source)

end
and save it then start duel system resource

if you wish to change the resource name make sure you put the same resource name at here below :
if exports['your duel resource name']:isPlayerInDuel(source) then
return false
end
local t = tonumber(get("playerRespawnTime")) or 5000
setTimer(spawn,(t > 50 and t or 50),1,source)

end
if you have doubts you are free to contact me via discord :Storm-Hanma#9704 or comments here i will reply
since its uncompiled script you are free to edit resource .
below is sample video :https://youtu.be/A-y3grqkkqs
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2020-06-22 17:02:43 First public release Download