SA-MP Forums Archive
Duel system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Duel system (/showthread.php?tid=523636)



Duel system - YanLanger - 03.07.2014

yooo

Ok.. so... i am trying to find a good duel system BUT everything has bugs omg

I tried to make one by my self but i didn't know how..

Can anyone explain me somehow..

Thanks


Re: Duel system - greentarch - 03.07.2014

Do you have ZCMD and sscanf2?
I can make you one if you have them.

Basically, you need some vars.
A var that checks if the player has invited someone at duel, and a var that checks if the player has already been invited.
Then, dueler will have to select a dialog selecting which weapon they will use, storing duelID in a var too.
After it's selected, dueler will wait for selected id for /acceptduel, after they accepts, you put them in a place (warehouse interior?).
OnPlayerDeath thingy to giveplayermoney to the winner.
Simple, right?


Re: Duel system - YanLanger - 03.07.2014

yes i have :P