Lottery system
#2

PHP код:
new PlayerText:LotteryButton[MAX_PLAYERS][5];
new 
Lottery[MAX_PLAYERS][5];
new 
LotteryTry[MAX_PLAYERS];
OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid){
if(
_:playertextid != INVALID_TEXT_DRAW){
new 
cnt=LotteryTry[playerid];
for(new 
i5i++){
if(
Lottery[playerid][i]==playertextid){
Lottery[playerid][cnt]=i+1;
LotteryTry[playerid]++;
if(
LotteryTry[playerid]!=5){
//...ShowTDagain
}else{
scm(playerid,-1,"You have selected all your numbers.");
}
break;
}
}
return 
1;

Reply


Messages In This Thread
Lottery system - by GunZsmd - 20.04.2016, 17:23
Re: Lottery system - by CodeStyle175 - 20.04.2016, 20:28

Forum Jump:


Users browsing this thread: 2 Guest(s)