War sys
#1

I am making war system fro gangs.. You know, leader invites leader to war. If both accept then they invite members of their gangs.. And that is where I am stuck now
How can I make that they can invite only members from their gangs and how cna I assign players to team?? Any ideas?
Reply
#2

PHP код:
if(fraction[playerid] == fraction[inviteplayerid]) 
and a team variable / the implemented team functionallities (https://sampwiki.blast.hk/wiki/SetPlayerTeam)
Reply
#3

PHP код:
new WarPlayers[2]; 
I have that declared globally. 0 and 1 are teams. How can I put players in different teams?? How can I know that?
Reply
#4

PHP код:
#define TEAM_INVALID -1
#define TEAM_ONE 0
#define TEAM_TEAM 1

new playerTeam[MAX_PLAYERS];

onPlayerConnect(id)
{
    
playerTeam[id] = TEAM_ONE//EXAMPLE

    //or

    
SetPlayerTeam(idTEAM_ONE);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)