Question
#1

How to remplace Money With Credits
Exemple:if i have 3Credits and i want Be Weapon (5 Credit) u Must Have More Credits.
Need Like this One i Don't Know how to make like it
Reply
#2

Hello.
Just make some variable which will cumulate amout of the credits that player has, for example:
pawn Код:
new CreditAmount[ MAX_PLAYERS ];
Then, manage somehow, how player will get those credits - in anyway You want.

If You want to make some command which needs n credits, then just use the if statement:
pawn Код:
if( CreditAmount[ playerid ] < n ) {
    SendClientMessage( playerid, -1, "You need n credits to issue this command!");
    return 1;
}
Greetings.
Reply
#3

Quote:
Originally Posted by LetsOWN[PL]
Посмотреть сообщение
Hello.
Just make some variable which will cumulate amout of the credits that player has, for example:
pawn Код:
new CreditAmount[ MAX_PLAYERS ];
Then, manage somehow, how player will get those credits - in anyway You want.

If You want to make some command which needs n credits, then just use the if statement:
pawn Код:
if( CreditAmount[ playerid ] < n ) {
    SendClientMessage( playerid, -1, "You need n credits to issue this command!");
    return 1;
}
Greetings.
explain More
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)