10.11.2011, 17:09
Quote:
So you got to check the playerid killstreak since he is the one who dies:
pawn Код:
|
![Wink](images/smilies/wink.png)
ERROR: You must spread some Reputation around before giving it to SmiT again.
I will try to give you again later.
Also, is this correct?
pawn Код:
new str[256], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(killerid, PlayerName, sizeof(PlayerName));
switch( KillStreak[ killerid ] ) {
case 5:
{
format(str, sizeof(str), "%s is on a kill streak! 5 kills in a row!", PlayerName);
SendClientMessageToAll(COLOR_GREEN,str);
}
case 10:
{
format(str, sizeof(str), "%s is on fire! 10 kills in a row!", PlayerName);
GivePlayerWeapon(playerid, 31, 99999);
SendClientMessageToAll(COLOR_GREEN,str);
}
case 15:
{
format(str, sizeof(str), "Can anyone stop %s? 15 kills in a row!", PlayerName);
SendClientMessageToAll(COLOR_GREEN,str);
}
case 20:
{
format(str, sizeof(str), "%s is unstoppable! 20 kills in a row!", PlayerName);
GivePlayerWeapon(playerid, 26, 99999);
SendClientMessageToAll(COLOR_GREEN,str);
}
}
return 1;
}