20.11.2010, 20:28
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) // You count kills here.
{
SetPVarInt(killerid,"KillStreak",GetPVarInt(killerid,"KillStreak") + 1);
SetPVarInt(playerid,"KillStreak",0);
return 1;
}
// And when you make a command, you add this check before it can be used:
if(GetPVarInt(playerid,"KillStreak") >= 5)