[AJUDA]blokiar arma
#2

Bloquear todas
pawn Код:
public OnGameModeInit() {
    SetTimer("Armas", 1000, true);
    return true;
}

forward Armas();
public Armas() {
    for(new i, j = MAX_PLAYERS; i != j; ++i) {
        if(GetPlayerInterior(i) != 0) {
            if(GetPlayerWeapon(i) > 1) {
                GivePlayerWeapon(i, 1, 1);
            }
        }
    }
    return true;
}
Algumas
pawn Код:
forward Armas();
public Armas() {
    for(new i, j = MAX_PLAYERS; i != j; ++i) {
        if(GetPlayerInterior(i) != 0) {
            switch(GetPlayerWeapon(i)) {
                case /*id armas*/: {
                    GivePlayerWeapon(i, 1, 1);
                }
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
[AJUDA]blokiar arma - by Luiiz - 19.04.2012, 05:43
Re: [AJUDA]blokiar arma - by zbt - 19.04.2012, 11:29
Re: [AJUDA]blokiar arma - by Luiiz - 19.04.2012, 13:29
Re: [AJUDA]blokiar arma - by zbt - 19.04.2012, 13:46
Re: [AJUDA]blokiar arma - by Luiiz - 19.04.2012, 14:26
Re: [AJUDA]blokiar arma - by zbt - 19.04.2012, 14:35
Re: [AJUDA]blokiar arma - by Ricop522 - 19.04.2012, 14:48
Re: [AJUDA]blokiar arma - by Luiiz - 19.04.2012, 14:50
Re: [AJUDA]blokiar arma - by Luiiz - 19.04.2012, 15:10
Re: [AJUDA]blokiar arma - by zbt - 19.04.2012, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)