23.08.2011, 14:40
(
Last edited by Join7; 14/09/2011 at 09:07 PM.
)
Code:
if (strcmp(cmd, "/lotto", true) == 0) { if(IsPlayerConnected(playerid)) { return 1; } return 1; }
if (strcmp(cmd, "/lotto", true) == 0) { if(IsPlayerConnected(playerid)) { return 1; } return 1; }
for(new i = 0; i < MAX_PLAYERS; i++) PlayerInfo[i][pLotto] = 0;
PlayerInfo[playerid][pLotto] = 0;
if(PlayerInfo[playerid][pLotto] != 0) return SendClientMessage(playerid,0xff0000ff,"You have already bought a ticket.");
When the lotto ends, use
pawn Code:
pawn Code:
pawn Code:
If the PlayerInfo[playerid][pLotto] is not equal to 0, it means that he bought a ticket. |
PlayerInfo[playerid][pLotto] = 0;