18.01.2011, 11:54
use:
Above the main():
And heres the functions:
Havent tested it.
Above the main():
pawn Код:
new pBankPin [ MAX_PLAYERS ];
pawn Код:
stock GenerateBankPin() {
new pin = random(9999);
return pin;
}
stock GivePlayerBankPin ( playerid ) {
new bpin = GenerateBankPin();
for ( new i = 0; i < MAX_PLAYERS ; i++ ) {
if ( IsPlayerConnected ( i ) && pBankPin [ i ] == bpin ) {
bpin = GenerateBankPin();
}
}
return bpin;
}