Nein icq habe ich nicht
public OnPlayerDeath(playerid, killerid, reason)
{
if(data[playerid][team] == 1 && data[playerid][indm] == true)
{
data[playerid][deaths]++;
data[killerid][kills]++;
Team_kills[1]++;
}
if(data[playerid][team] == 2 && data[playerid][indm] == true)
{
data[playerid][deaths]++;
data[killerid][kills]++;
Team_kills[2]++;
}
if(Team_kills[1] => 50)
{
SendClientMessage(playerid,Farbe,"Das Team 1 hat gewonnen");
Team_kills[1] = 0; Team_kills[2] = 0;
}
if(Team_kills[2] => 50)
{
SendClientMessage(playerid,Farbe,"Das Team 2 hat gewonnen");
Team_kills[1] = 0; Team_kills[2] = 0;
}
return 1;
}
//
enum playa {
dm,
bool:indm,
deaths,
kills,
team}
new data[MAX_PLAYERS][playa];
new Team_kills[2];