Give all players
#3

With foreach, I've made this function for you:

pawn Код:
stock giveWeaponToAllPlayers(weaponid, ammo) {
    foreach(Player, x) {
        GivePlayerWeapon(x, weaponid, ammo);
    }
   
    return 1;
}
Quote:
Originally Posted by Monty_Burns
Посмотреть сообщение
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i)) {
                PlayerPlaySound(i,1057,0.0,0.0,0.0);
                GivePlayerWeapon(i,weap,ammo); //Change weap && ammo to what your weapon and ammo should be.
            }
has willsuckformoney sayed
You just copied his code completely...
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: 5 Guest(s)