//LOTERICA
new roubolot;
new ProvocoLot[MAX_PLAYERS];
new tempolot;
forward RouboLot(playerid);
//Se Quizer por no /gps Pega a Coordernada ai
SetPlayerCheckpoint(playerid, 1631.8547,-1172.5637,24.0843,8.0);//Loterica
//Coloca na Public ai
public ClearFishes(playerid)
{
if(IsPlayerConnected(playerid))
{
Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "Nenhum");
strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
}
return 1;
}
public ClearFishID(playerid, fish)
{
if(IsPlayerConnected(playerid))
{
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "Nenhum");
switch (fish)
{
case 1:
{
strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
Fishes[playerid][pWeight1] = 0;
Fishes[playerid][pFid1] = 0;
}
case 2:
{
strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
Fishes[playerid][pWeight2] = 0;
Fishes[playerid][pFid2] = 0;
}
case 3:
{
strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
Fishes[playerid][pWeight3] = 0;
Fishes[playerid][pFid3] = 0;
}
case 4:
{
strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
Fishes[playerid][pWeight4] = 0;
Fishes[playerid][pFid4] = 0;
}
case 5:
{
strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
Fishes[playerid][pWeight5] = 0;
Fishes[playerid][pFid5] = 0;
}
}
}
return 1;
}
public ClearCooking(playerid)
{
if(IsPlayerConnected(playerid))
{
Cooking[playerid][pCookID1] = 0; Cooking[playerid][pCookID2] = 0; Cooking[playerid][pCookID3] = 0;
Cooking[playerid][pCookID4] = 0; Cooking[playerid][pCookID5] = 0;
Cooking[playerid][pCWeight1] = 0; Cooking[playerid][pCWeight2] = 0; Cooking[playerid][pCWeight3] = 0;
Cooking[playerid][pCWeight4] = 0; Cooking[playerid][pCWeight5] = 0;
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "Nenhum");
strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
}
return 1;
}
public ClearCookingID(playerid, cook)
{
if(IsPlayerConnected(playerid))
{
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "Nenhum");
switch (cook)
{
case 1:
{
strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight1] = 0;
Cooking[playerid][pCookID1] = 0;
}
case 2:
{
strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight2] = 0;
Cooking[playerid][pCookID2] = 0;
}
case 3:
{
strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight3] = 0;
Cooking[playerid][pCookID3] = 0;
}
case 4:
{
strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight4] = 0;
Cooking[playerid][pCookID4] = 0;
}
case 5:
{
strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
Cooking[playerid][pCWeight5] = 0;
Cooking[playerid][pCookID5] = 0;
}
}
}
return 1;
}
public ClearGroceries(playerid)
{
if(IsPlayerConnected(playerid))
{
Groceries[playerid][pChickens] = 0; Groceries[playerid][pChicken] = 0;
Groceries[playerid][pHamburgers] = 0; Groceries[playerid][pHamburger] = 0;
Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
}
return 1;
}
public Lotto(number)
{
new JackpotFallen = 0;
format(gstring, sizeof(gstring), "Loterica: Hoje o numero sorteado foi o nє %d.", number);
OOCNews(COLOR_WHITE, gstring);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLottoNr] > 0)
{
if(PlayerInfo[i][pLottoNr] == number)
{
JackpotFallen = 1;
format(gstring, sizeof(gstring), "Loterica: %s ganhou R$%d com seu bilhete.", PlayerName(i), Jackpot);
OOCNews(COLOR_WHITE, gstring);
format(gstring, sizeof(gstring), "* Vocк ganhou R$%d com seu bilhete de loteria.", Jackpot);
SendClientMessage(i, COLOR_YELLOW, gstring);
ConsumingMoney[i] = 1;
GivePlayerMoney(i, Jackpot);
}
else
{
SendClientMessage(i, COLOR_GREY, " Vocк nгo tem um bilhete.");
}
}
PlayerInfo[i][pLottoNr] = 0;
}
}
if(JackpotFallen)
{
new rand = random(125000); rand += 15789;
Jackpot = rand;
SaveStuff();
format(gstring, sizeof(gstring), "Loterica: O prкmio acumulou para: R$%d.", Jackpot);
OOCNews(COLOR_WHITE, gstring);
}
else
{
new rand = random(15000); rand += 2158;
Jackpot += rand;
SaveStuff();
format(gstring, sizeof(gstring), "Loterica: O prкmio acumulou para: R$%d.", Jackpot);
OOCNews(COLOR_WHITE, gstring);
}
return 1;
}
//Loterica entrada
SetPlayerPos(playerid, 832.6270,7.2666,1004.1797);
GameTextForPlayer(playerid, "~w~Loterica BVE",5000,1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
//Loterica saida
SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
//loterica
GameTextForPlayer(i, "~w~Digite /loteria para comprar um bilhete!", 5000, 5);
}
else if(PlayerToPoint(3.0, i,256.0320,84.5082,1002.4453))
{
if (PlayerInfo[i][pMembro] == 24 || PlayerInfo[i][pLider] == 24)
{
GameTextForPlayer(i, "~g~PAGUE 5K e, ~n~ ~w~ | Digite ~y~/autorizacao |", 5000, 5);
}
}
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(4341) : error 021: symbol already defined: "SetPlayerPos"
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(4349) : error 021: symbol already defined: "SetPlayerPos"
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10801) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10802) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10803) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10804) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10805) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10806) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10807) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10808) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10809) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10810) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10811) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10812) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10813) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10814) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10815) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(10816) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11860) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11861) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11863) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11864) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11865) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11866) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11867) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11868) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11869) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11870) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11871) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11872) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11873) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11874) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11969) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11970) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11971) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11972) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11973) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11974) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11975) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11976) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11977) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11978) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11979) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11980) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11981) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11982) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11983) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(11984) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12090) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12091) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12092) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12093) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12095) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12096) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12097) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12098) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12099) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12100) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12101) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12102) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12103) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12105) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12106) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12107) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12108) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12110) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12113) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12114) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12115) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12116) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12167) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12168) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12169) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12170) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12171) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12172) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12173) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12174) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12182) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(12188) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(36277) : warning 225: unreachable code
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(36287) : warning 225: unreachable code
C:\Documents and Settings\Branco\Desktop\Brasil Play HeeL\gamemodes\BPH.pwn(51698) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1631.9241,-1171.9614,24.0781))// Loterica
{
SetPlayerPos(playerid, 833.269775,10.588416,1004.179687);
SetPlayerInterior(playerid, 3);
GameTextForPlayer(playerid, "~y~Bem Vindo a Loterica", 3000, 1);
}