Question
#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


Messages In This Thread
Question - by anassmaroc - 14.08.2015, 09:30
Re: Question - by LetsOWN[PL] - 14.08.2015, 09:46
Re : Re: Question - by anassmaroc - 16.08.2015, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)