public usun(id){
playerStats[id][KILL]=0;
playerStats[id][HS]=0;
}
public client_putinserver(id){
get_user_name(id,playerName[id],charsmax(playerName));
usun(id);
}
public Odrodzenie(id)
{
usun(id);
}
public WygranaTerro()
WygranaRunda("TERRORIST");
public WygranaCT()
WygranaRunda("CT");
public WygranaRunda(const Team[])
{
new Players[32], playerCount;
new idPlayers;
get_players(Players, playerCount, "eh", Team);
for (new i=0; i<playerCount; i++){
idPlayers = Players[i];
if(get_playersnum() < 3)
return;
}
}
public koniec_rundy(id) {
if (playerStats[best_player_round()][KILL] > 0) {
ColorChat(0, RED, "[^4~MVP~^3]^1 Najlepszym graczem rundy zostal^3 %s^4",playerName[best_player_round()]);
ColorChat(0, RED, "[^4~MVP~^3]^1 Zabil^4 %d^1 osob, w tym^4 %d^1 strzalem w glowe.",playerStats[best_player_round()][KILL], playerStats[best_player_round()][HS]);
}
if(get_playersnum() < 3)
return;
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
new hs=read_data(3);
if(!is_user_connected(killer) || !is_user_connected(victim))
return PLUGIN_HANDLED;
if(killer == victim)
return PLUGIN_HANDLED;
playerStats[killer][KILL]++;
if(hs)
playerStats[killer][HS]++;
return PLUGIN_CONTINUE;
}
Wywalilem ci client_disconnect bo i tak masz to samo w client_putinserver


Dodatki SourceMod





Moja zawartość
Mężczyzna































blockBarrier.amxx






