19.04.2012, 11:29
Bloquear todas
Algumas
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;
}
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;
}