15.11.2008, 04:00
new killlerteam[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
killlerteam[killerid]+=1;
}
SetTimer("checkscore", 1000, 1);
public checkscore()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(killlerteam [ i ]>=50)
{
winthendosomething();
return 1;
}
}
}
public winthendosomething()
{
dosomething;
}
public OnPlayerDeath(playerid, killerid, reason)
{
killlerteam[killerid]+=1;
}
SetTimer("checkscore", 1000, 1);
public checkscore()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(killlerteam [ i ]>=50)
{
winthendosomething();
return 1;
}
}
}
public winthendosomething()
{
dosomething;
}