Creating a faction attack system [+rep] - 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: Creating a faction attack system [+rep] (
/showthread.php?tid=326591)
Creating a faction attack system [+rep] -
WardenCS - 18.03.2012
Hello,i want to create a faction attacking system,i dont know how to do it,i want to do like if there are in both of factions 5 members online,then you can start the war,the war will last 5 minutes and if the new faction won then it will be owned by the winners(racket)
heres the way it shows the dialog
Код:
CMD:racket(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(RacketInfo); i++)
{
if (PlayerToPoint(2.0, playerid,RacketInfo[i][rEntrancex], RacketInfo[i][rEntrancey], RacketInfo[i][rEntrancez]))
{
ShowPlayerDialog( playerid, 2400, DIALOG_STYLE_LIST, "Racket", "Take Over\nEnter\nDefend\nExit", "Select", "Cancel" );
RacketIDMenu[playerid] = i;
}
}
}
return 1;
}
Re: Creating a faction attack system [+rep] -
WardenCS - 19.03.2012
BUMP
Re: Creating a faction attack system [+rep] -
Mauzen - 19.03.2012
This is a big piece of code and needs detailed knowledge of your faction system, so noone can do it here.