Creating a faction attack system [+rep]
#1

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;
}
Reply
#2

BUMP
Reply
#3

This is a big piece of code and needs detailed knowledge of your faction system, so noone can do it here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)