18.07.2011, 20:13
Save the number somewhere.
Then, check the number at the command with:
Код:
new number = (1000 + random(9999)); format(str, sizeof str,"Your number is: %d.",number); SendClientMessage(playerid, COLOR, str); CheckNum[playerid] = number;
Код:
if(CheckNum[playerid] == enterednumber) // the number that's entered behind the signcheck cmd.