09.01.2013, 19:38
pawn Код:
COMMAND:lotto(playerid, params[])
{
new Number;
sscanf(params, "d", Number);
if(Number < 1)
{
SendClientMessage(playerid, 0x10F441AA, "USAGE: /lotto (1-100)");
return 1;
}
if(Number > 100)
{
SendClientMessage(playerid, 0x10F441AA, "USAGE: /lotto (1-100)");
return 1;
}
SendClientMessage(playerid, 0x10F441AA, "Your lotto number is: %d",Number);
SendClientMessage(playerid, 0x10F441AA, "You have purchased a lotto ticket!");
SendClientMessage(playerid, 0x10F441AA, "Wait for the draw.. Good luck!");
return 1;
}