10.03.2012, 19:07
Update of code
i've tried both versions of what was posted and also what cookie posted, It's not sending the message out.
pawn Код:
Killstreak[killerid] += 1;
Killstreak[ playerid ] = 0;
/* switch( Killstreak[ killerid ] )
{
case 2:
{
format(string,sizeof(string),"* Your Killstreak is %s", Killstreak[killerid]);
SendClientMessage(killerid,LIGHTGREEN,string);
return 1;
}
case 5:
{
GivePlayerMoney(killerid,1000);
SendClientMessage(killerid,LIGHTGREEN,"Here's an Extra $1000!");
return 1;
}
case 6:
{
GivePlayerWeapon(playerid,24,100);
SendClientMessage(killerid,LIGHTGREEN,"Here's a Extra Desert Eagle Ammo!");
return 1;
}
}*/
if(Killstreak[killerid] >= 2)
{
format(string,sizeof(string),"* Your Killstreak is %s", Killstreak[killerid]);
SendClientMessage(killerid,LIGHTGREEN,string);
return 1;
}
if(Killstreak[killerid] >= 5)
{
GivePlayerMoney(killerid,1000);
SendClientMessage(killerid,LIGHTGREEN,"Here's an Extra $1000!");
return 1;
}
if(Killstreak[killerid] == 6)
{
GivePlayerWeapon(playerid,24,100);
SendClientMessage(killerid,LIGHTGREEN,"Here's a Extra Desert Eagle Ammo!");
return 1;
}