29.07.2011, 20:35
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
Streak[playerid] = 0;
if(IsPlayerConnected(killerid))
{
Streak[killerid]++;
switch(Streak[killerid])
{
case 5: GameTextForPlayer(killerid,"~g~You are on a 5 killstreak!",5000,5);
case 10: GameTextForPlayer(killerid,"~g~You are on a 10 killstreak!",5000,5);
case 15: GameTextForPlayer(killerid,"~g~You are on a 15 killstreak!",5000,5);
case 20: GameTextForPlayer(killerid,"~g~You are on a 20 killstreak!",5000,5);
case 25: GameTextForPlayer(killerid,"~g~You are on a 25 killstreak!",5000,5);
}
}
return 1;
}