[FS] Advance Duel System [1.0, 24.03.2010] -
Riaz - 24.03.2010
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
Re: [FS] Advance Duel System 1.0 -
Tenshi - 25.03.2010
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
Re: [FS] Advance Duel System 1.0 -
Riaz - 25.03.2010
But if paste in FS's OnPlayerCommandText "return 0;", commands in gamemode doesn't work
Re: [FS] Advance Duel System 1.0 -
xenowort - 25.03.2010
good joob.
Re: [FS] Advance Duel System 1.0 -
Snoooopy - 25.03.2010
Nice , Good job.
Re: [FS] Advance Duel System 1.0 -
Brian_Furios - 25.03.2010
no bad
Re: [FS] Advance Duel System 1.0 -
Riaz - 25.03.2010
Thanks all
Re: [FS] Advance Duel System [1.0, 24.03.2010] -
DauerDicht - 25.03.2010
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
Re: [FS] Advance Duel System [1.0, 24.03.2010] -
Riaz - 25.03.2010
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 ©
Re: [FS] Advance Duel System [1.0, 24.03.2010] -
Xx_OutLawZ_xX - 30.07.2010
very nice m8 but it would be more good if you set it as a dialog
Re: [FS] Advance Duel System [1.0, 24.03.2010] -
nuriel8833 - 30.07.2010
Great Job Dude!