02.04.2016, 08:42
Probably i have being trying this thing yesterday night. And again came up with it today. But i don't think it's working.
The codes are here. The system doesn't work.
The codes are here. The system doesn't work.
Код:
CMD:bet(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,3.0,1961.3129,1025.3032,992.4688))
{
if(pInfo[playerid][pActivity] > 0 || pInfo[playerid][pFCash] > 0)
{
new number;
if(sscanf(params,"d",number)) return SendClientMessage(playerid,colorexit,"[ ! ] /bet number");
new betnumber = random(1);
if(number < 0 || number > 1) return SendClientMessage(playerid,colorexit,"[ ! ] Choose number");
if(number == betnumber)
{
SendClientMessage(playerid,colorexit,"[ ! ] You win!");
}
else
{
SendClientMessage(playerid,colorexit,"[ ! ] You lose!");
}
return 1;
}
else SendClientMessage(playerid,colorexit,"[ ! ] Please check your /activity or /fcash for betting your pot!");
}
else SendClientMessage(playerid,colorexit,"[ ! ] You must be near the casino table to bet your pot!");
return 1;
}

