14.08.2015, 09:46
Hello.
Just make some variable which will cumulate amout of the credits that player has, for example:
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:
Greetings.
Just make some variable which will cumulate amout of the credits that player has, for example:
pawn Код:
new CreditAmount[ MAX_PLAYERS ];
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;
}