Loop trough all players except one
#3

make a player loop, assign the excluded player to a variable, and you get something like this:

pawn Код:
// When the player find the moneybag do this:
finder = playerid

//- Other part of script -//
for(new i=0; i < MAX_PLAYERS; i++)
{
    if(finder != i)
    {
        // Do something here
    }
}
Reply


Messages In This Thread
Loop trough all players except one - by BlackWolf120 - 18.01.2011, 14:16
Re: Loop trough all players except one - by iggy1 - 18.01.2011, 14:21
Re: Loop trough all players except one - by Patrik356b - 18.01.2011, 14:23
Re: Loop trough all players except one - by BlackWolf120 - 18.01.2011, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)