1 Question!
#1

Hello Guys,
i need little help. ~How can i do this~
e.g i maded command
When Player type "Money" (Without /) it gives him 100$ and when he tries to type it again it says "You Already Founded The Bonus Word"
Reply
#2

So you mean if someone types "Money" in-game, it need's to give him 100$ each time they type it?
Reply
#3

pawn Код:
new MoneyUsed[MAX_PLAYERS];

public OnPlayerText(playerid, text[])
{
    if(strcmp(text, "Money", true, 5))
    {
        if(MoneyUsed[playerid] != 0)
        {
            SendClientMessage(playerid, -1, "You already found the bonus word");
        }
        else
        {
            MoneyUsed[playerid] = 1;
            GivePlayerMoney(playerid, 100);
        }
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
Hello Guys,
i need little help. ~How can i do this~
e.g i maded command
When Player type "Money" (Without /) it gives him 100$ and when he tries to type it again it says "You Already Founded The Bonus Word"
show us your command?
Reply
#5

Ahm.. Done Thanks anywayz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)