From to...
#1

Hello, I am making a killing system, but I am stuck at one thing:
I did:
pawn Код:
if(Kills[playerid] >= 2)
    {
                    GivePlayerMoney(killerid, 1000);
    }
but I want it that if Kills[playerid] is 2 or 3 or 4 or 5 give the same money (1000) how do I do it?
Bad english, sorry, hope you understand me.
Reply
#2

Can you explain more, i don't get it.
You want to make, that the player gets money, when he got 2,3,4 or 5 kills?
Reply
#3

I mean no matter if player1 has 2, 3, 4 or 5 kills, player2 who killed player1 gets $1000;
if player1 kills are 6, 7, 8, 9 or 10, player 2 who killed player 1 gets $5000 and so on.
Reply
#4

pawn Код:
if(Kills[playerid] >= 2 && Kills[playerid] <= 5)
    {
                    GivePlayerMoney(killerid, 1000);
    }
    else if(Kills[playerid] >= 6 && Kills[playerid] <= 10)
    {
                    GivePlayerMoney(killerid, 5000);
    }
Reply
#5

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
if(Kills[playerid] >= 2 && Kills[playerid] <= 5)
    {
                    GivePlayerMoney(killerid, 1000);
    }
    else if(Kills[playerid] >= 6 && Kills[playerid] <= 10)
    {
                    GivePlayerMoney(killerid, 5000);
    }
Thanks. (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)