KillStreak Problem
#8

Update of code
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;
    }
i've tried both versions of what was posted and also what cookie posted, It's not sending the message out.
Reply


Messages In This Thread
KillStreak Problem - by acade - 10.03.2012, 18:18
Re: KillStreak Problem - by Konstantinos - 10.03.2012, 18:25
Re: KillStreak Problem - by acade - 10.03.2012, 18:26
Re: KillStreak Problem - by Max_Coldheart - 10.03.2012, 18:26
Re: KillStreak Problem - by Konstantinos - 10.03.2012, 18:31
Re: KillStreak Problem - by acade - 10.03.2012, 18:42
Re: KillStreak Problem - by Max_Coldheart - 10.03.2012, 18:43
Re: KillStreak Problem - by acade - 10.03.2012, 19:07
Re: KillStreak Problem - by [ABK]Antonio - 10.03.2012, 23:26
Re: KillStreak Problem - by Max_Coldheart - 11.03.2012, 08:48

Forum Jump:


Users browsing this thread: 4 Guest(s)