30.12.2010, 14:20
Be sure you have this somewhere at the top.
new Killstreak[MAX_PLAYERS];
new Killstreak[MAX_PLAYERS];
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
Killstreak[killerid]++;
Killstreak[playerid]=0;
if(Killstreak[killerid] == 1)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+2);
}
if(Killstreak[killerid] == 2)
{
print("Killstreak=2");
SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
ResetPlayerWeapons(killerid);
GivePlayerWeapon(killerid, 27, 4);
}
return 1;
}