[FilterScript] [FS] Advance Duel System [1.0, 24.03.2010]
#1

Hi there, I want present my work - Advance Duel System.

Commands:
  • /duelh [location ID] [primary weapon ID(/duelw)] [secondary weapon ID(/duelw)] [armour] (invite player ID (unnecessarily)) - create duel
  • /duelj [duel ID] - join to duel
  • /dueldec - decline duel invite
  • /dueld - delete duel
  • /duell - list of locations
  • /duelw - list of aviable weapons
Settings:
Aviable weapons:
In the array "AviableWeapons", in comments wrote id of weapons. If you want use this weapon, use "true", or "fasle" else.
Example:
Code:
false,//22
true,//23
true,//24
true,//25
false,//26
false,//27
Silenced(23),Desert Eagle(24),Shotgun(25) is aviable, Colt(22),Sawn(26),Spaz(27) is not aviable

Locations:
Format of locations:
Code:
{"SF Airport", {-1309.0671,-193.6552,14.1484,316.0927}, {-1251.0068,-135.5645,14.1484,131.9633},0}
"SF Airport", - location name
{-1309.0671,-193.6552,14.1484,316.0927}, - player1 coordinates (x,y,z,angle)
{-1251.0068,-135.5645,14.1484,131.9633}, - player2 coordinates (x,y,z,angle)
0 - interior

Max Duels:
Code:
#define MAX_DUELS 20
20 - max duels

Screens:


/duelw

/duell


Video:
(i'm vs my notebook, sorry for lags)

Download 1.0:Mirrors are allowed!

PLEASE! If you will be use my fs, add me to credits, thanks!

P.S. Sorry for bad English
Reply
#2

Hey Buddy, you forgot a return

Code:
adseng10.pwn(370) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
made a small fix here:

Code:
		ShowPlayerDialog(playerid, 9900, 0, "Aviable weapons of Advance Duel System", stringtwo, "OK", "Exit");
  	return 1;
	}
	return 0; // this is where you forgot
}
Pawn update here:
[x] http://sa-mp.pastebin.com/MyX5rV9b,
[x] http://pastebin.me/78673d07c0fe702a2e5277ab5532650a, or
[x] http://vim.pastey.net/134562
Reply
#3

But if paste in FS's OnPlayerCommandText "return 0;", commands in gamemode doesn't work
Reply
#4

good joob.
Reply
#5

Nice , Good job.
Reply
#6

no bad
Reply
#7

Thanks all
Reply
#8

Nice, how it will work that the winner will spawn at the last point and the looser too?

Because they spawn at their houses or @ hospital
Reply
#9

Start duel Position sets in 1-2 second after Spawn, Winner just will send to spawn, like on video in 1st post, but you can correct in code whatever you want, but dont forget about ©
Reply
#10

very nice m8 but it would be more good if you set it as a dialog
Reply
#11

Great Job Dude!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)