22.01.2013, 13:29
Need to improvise.
like you can do
new PlayerInEvent[MAX_PLAYERS];
In some event command
Loop for i
if(IsPlayerInEventCar(i,car)) { PlayerInEvent[i] = 1; }
Later elsewhere
Loop for i
if(PlayerInEvent[i] == 1) { SendClient(i,-1," you are in event"); }
or
new PlayerInEvent[10]; //As not whole server can be in the same event aka arena orso.
In some event command
Loop for i
if(IsPlayerInEventCar(i,car)) { Loop for B PlayerInEvent[b] = i; }
Later elsewhere
Loop for i
SendClient(PlayerInEvent[i],-1," you are in event");
Hope you got what I mean, like make slots for certain things, not always you have to loop through all cars or players, or like some faction cars can load apples example, you dont need to use Apples[MAX_VEHICLES]; but just Apples[Faction cars count];
like you can do
new PlayerInEvent[MAX_PLAYERS];
In some event command
Loop for i
if(IsPlayerInEventCar(i,car)) { PlayerInEvent[i] = 1; }
Later elsewhere
Loop for i
if(PlayerInEvent[i] == 1) { SendClient(i,-1," you are in event"); }
or
new PlayerInEvent[10]; //As not whole server can be in the same event aka arena orso.
In some event command
Loop for i
if(IsPlayerInEventCar(i,car)) { Loop for B PlayerInEvent[b] = i; }
Later elsewhere
Loop for i
SendClient(PlayerInEvent[i],-1," you are in event");
Hope you got what I mean, like make slots for certain things, not always you have to loop through all cars or players, or like some faction cars can load apples example, you dont need to use Apples[MAX_VEHICLES]; but just Apples[Faction cars count];