←  Problemy z pluginami

AMXX.pl: Support AMX Mod X i SourceMod

»

Plugin zabija swoich!

Locked

adek1479's Photo adek1479 11.09.2010

Witam jak zrobić żeby tutaj Call of Duty [KillStrike] 0.6 - Nieoficjalny polski support AMX Mod X Nalot nie zabijał swoich?
Quote

  • +
  • -
camilost's Photo camilost 11.09.2010

for (new m=0; m<playercount; m++) 
    { 
        new playerlocation[3]; 
        new resultdistance; 
         
        get_user_origin(players[m], playerlocation); 
         
        resultdistance = get_distance(playerlocation,location); 
         
        if(resultdistance < 250) 
        {           
			fakedamage(players[m],"Air Raid",1000.0,DMG_BURN); 
        } 
    }
-->
for (new m=0; m<playercount; m++) 
    {
        if(get_user_team(m) != get_user_team(id))
        {
                new playerlocation[3]; 
                new resultdistance; 
                
                get_user_origin(players[m], playerlocation); 
                
                resultdistance = get_distance(playerlocation,location); 
                
                if(resultdistance < 250) 
                {           
			fakedamage(players[m],"Air Raid",1000.0,DMG_BURN); 
                }
        }
    }

: > Powinno dobrze wyjść z ID, a jeśli nie to dodać zmienną przed nalotem temu id co zrobił nalot i sprawdzić w jakiej drużynie on dał nalot i ten powyższy IF :P np. ^^
Quote
Locked