Give all players
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/startevent", cmdtext, true))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                PlayerPlaySound(i,1057,0.0,0.0,0.0);
                GivePlayerWeapon(i,31,350);
                GivePlayerWeapon(i,24,350);
                GivePlayerWeapon(i,26,350);
                GivePlayerWeapon(i,27,350);
            }
        }
        return 1;
    }
    return 0;
}
I think "return 1" was in the wrong place ending the loop prematurely.
Reply


Messages In This Thread
Give all players - by SampStunta - 12.09.2010, 23:43
Re: Give all players - by willsuckformoney - 12.09.2010, 23:50
Re: Give all players - by Calgon - 13.09.2010, 07:10
Re: Give all players - by SampStunta - 13.09.2010, 08:27
Re: Give all players - by SampStunta - 13.09.2010, 10:24
Re: Give all players - by iggy1 - 13.09.2010, 11:19

Forum Jump:


Users browsing this thread: 2 Guest(s)