How can I make a variable that is for all player
#1

Something like:
If event=1,you can join but It isn't using PlayerInfo but it applies for all players XD
Reply
#2

Create an array with a size of MAX_PLAYERS.
Reply
#3

Umm...Can you post an example?And how to use it XD
Reply
#4

pawn Код:
new variable[MAX_PLAYERS];

variable[playerid] = 5;
Reply
#5

Thanx!+REP will get delivered tomorrow!
Reply
#6

Setting for all players like this

new ForAll[MAX_PLAYERS];

make cmd or where you want to use.

like this.

Код:
CMD:turnon(playerid,params[])
{

	for(new i=0; i < MAX_PLAYERS; i++)
	{
        ForAll[i]=1;
        }

}
CMD:turnoff(playerid,params[])
{

	for(new i=0; i < MAX_PLAYERS; i++)
	{
        ForAll[i]=0;
        }

}

its Just Example hope it help you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)