03.08.2011, 21:17
im trying to make a killing spree it shows on chat but it wont show for some reason. i put this onplayerdeath
pawn Код:
new name[MAX_PLAYER_NAME],str[128];
GetPlayerName(killerid,name,sizeof(name));
if(spree[killerid] == 0)
{
spree[killerid] = 1;
}
else if(spree[killerid] == 1)
{
spree[killerid] = 2;
}
else if(spree[killerid] == 2)
{
spree[killerid] = 3;
}
else if(spree[killerid] == 3)
{
spree[killerid] = 4;
}
else if(spree[killerid] == 4)
{
spree[killerid] = 5;
format(str,sizeof(str),"%s is in a 5 Kill Spree!!!!",name);
}
else if(spree[killerid] == 5)
{
spree[killerid] = 6;
}
else if(spree[killerid] == 6)
{
spree[killerid] = 7;
}
else if(spree[killerid] == 7)
{
spree[killerid] = 8;
}
else if(spree[killerid] == 8)
{
spree[killerid] = 9;
}
else if(spree[killerid] == 9)
{
spree[killerid] = 10;
format(str,sizeof(str),"%s is in a 10 Kill Spree!!!!",name);
}