What's the problem?
#10

Quote:
Originally Posted by Mr_Scripter
View Post
Thanks yall anyone know how can i make if someone kill a player with 3 kills get 1k etc?
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    new pname[24],string[128];
    GetPlayerName(killerid, pname, sizeof(pname));
    KillingSpree[killerid] ++;
    KillingSpree[playerid] = 0;
    if(KillingSpree[killerid] == 3)
    {
        format(string,sizeof(string),"%s is on a killing spree with %d kills",pname,KillingSpree[killerid]);
        SendClientMessageToAll(COLOR_ORANGE,string);
        GivePlayerMoney(killerid, 1000);
    }
    if(KillingSpree[killerid] == 6)
    {
        format(string,sizeof(string),"%s is on a killing spree with %d kills",pname,KillingSpree[killerid]);
        SendClientMessageToAll(COLOR_ORANGE,string);
        GivePlayerMoney(killerid, 1000);
    }
    if(KillingSpree[killerid] == 9)
    {
        format(string,sizeof(string),"%s is on a killing spree with %d kills",pname,KillingSpree[killerid]);
        SendClientMessageToAll(COLOR_ORANGE,string);
        GivePlayerMoney(killerid, 1000);
    }
    if(KillingSpree[killerid] == 12)
    {
        //ect......
    }
    return 1;
}
Reply


Messages In This Thread
What's the problem? - by Mr_Scripter - 09.11.2011, 12:15
Re: What's the problem? - by CSSI - 09.11.2011, 12:36
Re: What's the problem? - by Mr_Scripter - 09.11.2011, 12:56
Re: What's the problem? - by CSSI - 09.11.2011, 12:58
Re: What's the problem? - by Mr_Scripter - 09.11.2011, 12:59
Re: What's the problem? - by SmiT - 09.11.2011, 13:04
Re: What's the problem? - by CSSI - 09.11.2011, 13:05
Re: What's the problem? - by Stigg - 09.11.2011, 13:15
Re: What's the problem? - by Mr_Scripter - 09.11.2011, 13:21
Re: What's the problem? - by Stigg - 09.11.2011, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)