Erros no SampForever e sistema pra salvar o email da pessoa D: e criar carro sem alterar o id deles
#1

Erro no GM SampForever,galera eu nгo sei oque aconteceu que quando a pessoa entra,mesmo a pessoa ja tendo conta criada aparece isso:

ai vc pode digitar qualquer coisa e dar enter que ai vai aparecer assim:

ai sim vc tem q por sua senha normal


2° Eu gostaria de quando o player criar a conta aparecer um chatbox assim:Por favor coloque seu msn para que possamos fazer contato

3° Eu gostaria de poder criar um comando para criar carros sу que sem alterar os ids dos carros do servidor,eu ja tentei um fs sу que tipo o id do carro da pm й 204 se eu crio um novo carro ai o carro da pm vira o 304 ai fica uma bagaзa total,eu queria um cmd que tipo adicionace um carro com sua id nova,ai excluice o carro com a id
Reply
#2

1є Poste seu OnPlayerConnect.

2є Poste seu OnPlayerRegister (imagino que seja GF)

3є Informe seu sistema de comandos (STRCMP ou ZCMD)
Reply
#3

1° on player connect й gigante mas...
Код:
public OnPlayerConnect(playerid)
{
if (gdebug >= 1){printf("Player[id %d] conectado no server.", playerid);}
	new bitch[256];
	Online++;
	GetPlayerName(playerid,bitch,sizeof(bitch));
	format(bitch,sizeof(bitch),"[SERVER] %s Estб Entrando No [RHB] Rpg Heroes Brasil [%d Online]",bitch,Online);
    SendClientMessageToAll(COLOR_WHITE,bitch);
    new string2[255];
    new string3[255];
//================================================================================================
 	if(Security != 0)
	{
	    SendClientMessage(playerid, COLOR_YELLOW, "Para jogar aqui, voce tem que cumprir as regras.");
	    return 1;
	}

    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    SendAdminMessage(COLOR_YELLOW, string2);

	new playerName[MAX_PLAYER_NAME],f;
	GetPlayerName(playerid,playerName,MAX_PLAYER_NAME);
	if(strfind(playerName,"_",true,1)!=-1)
	f=1;
	if(playerName[strlen(playerName)-1]=='_')
    f=0;
	for(new i=0;i<strlen(playerName);i++)
	if((playerName[i]<='9')&&(playerName[i]>='0'))
	f=0;
	if(!f)
	{
    GetPlayerName(playerid, pName, sizeof(pName));
	format(string2, sizeof(string2), "Vocк foi kickado, Motivo: Nome_Sobrenome mude o  Formato", pName);
	SendClientMessage(playerid, COLOR_LIGHTRED, string2);
	Kick(playerid);
	format(string3, sizeof(string3), "AdmCmd: %s foi kickado por [ADMINBOT], Motivo: Use Nome_Sobrenome", pName);
	SendClientMessage(playerid,COLOR_LIGHTRED,"* Seu nickname nгo estб devidamente correto para conectar-se !");
    SendClientMessage(playerid,COLOR_WHITE,"NOTA: Aqui vocк sу poderб jogar com o nickname nos dados 'Nome_Sobrenome',");
	SendClientMessage(playerid,COLOR_WHITE,"vc tem que por seu nome e apilido EXEMPLO:Sonic_FreeStyle!!!,");
	SendClientMessage(playerid,COLOR_WHITE,"esse sistema й escolhido pela diversidade de pessoas possнveis a conexгo e hacks de server,");
    SendClientMessage(playerid,COLOR_WHITE,"й bem ъtil para facilitar o uso de comandos, funзхes e comunicaзгo social no servidor.");
    SendClientMessage(playerid,COLOR_WHITE,"esse sistema foi criador por Sonic_FreeStyle.");
	SendClientMessageToAll(COLOR_LIGHTRED, string3);
	}
    //TextDrawShowForPlayer(playerid, Textdraw0);
    CarColor[playerid][0] = 1;
	CarColor[playerid][1] = 1;
    PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
    new ipstring[256];
	new IPlogName[MAX_PLAYER_NAME];
	new PlayerIP[256];
	GetPlayerName(playerid, IPlogName, sizeof(IPlogName));
	GetPlayerIp(playerid,PlayerIP, sizeof(PlayerIP));
	new year, month,day;
	getdate(year, month, day);
	new hour, minute;
	gettime(hour,minute);
	format(ipstring, sizeof(ipstring), "%s IP: %s DATA ( %d/%d/%d - %d:%d )", IPlogName,PlayerIP,year, month, day,hour, minute);
    IPLog(ipstring);
    MorroShowForPlayer(playerid);
	for(new t = 0; t < sizeof(Territorio); t++)
	{
		if(Territorio[t][TRON] >= 1)
		{
			GangZoneShowForPlayer(playerid,Territorio[t][TRID],Territorio[t][CorTR]);
			if(Territorio[t][TRGuerra] >= 1)
			{
				GangZoneFlashForPlayerEx(playerid,Territorio[t][TRID]);
			}
		}
	}
	if(Morro[Guerra] >= 1)
	{
	    MorroFlashForPlayer(playerid);
	}
    OnPlayerCommandText(playerid,"/bkclimacmd 5");//Faz o clima ficar igual ao do RHB,jamais apague essa linha '-'
    SetPlayerInterior(playerid, 0);
	SetPlayerPos(playerid, 1241.8787,-1693.4835,16.1940);
	SetPlayerFacingAngle(playerid, 183.6818);
	SetPlayerCameraPos(playerid, 1241.8787,-1693.4835,16.1940);
	SetPlayerCameraLookAt(playerid, 1243.1785,-1729.0465,13.5781);
	GetPlayerName(playerid, NOMEDAPESSOA, sizeof(NOMEDAPESSOA));
	gActivePlayers[playerid]++;
	numplayers++;
	new plname[MAX_PLAYER_NAME];
	new string[MAX_PLAYER_NAME];
	SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
	SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
	GettingEmprego[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
	GalaoOffer[playerid] = 999; GalaoPrice[playerid] = 0;
	AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
    ApprovedAdvogado[playerid] = 0; CallAdvogado[playerid] = 0; WantAdvogado[playerid] = 0;
	CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
	CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;
	CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
	RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
	STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
	RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
	TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
	RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
	DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
	DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
	DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
	JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
 	GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0;
	BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0;
	SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
	BusCallTime[playerid] = 0; CopsrondaCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; AdvogadosCallTime[playerid] = 0;
	BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
	FindTimePoints[playerid] = 0; FindTime[playerid] = 0; EmpregoDuty[playerid] = 0;
	Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
	Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
	Unspec[playerid][sLocal] = 255; FishCornt[playerid] = 0;
	WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
	PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0; FirstSpawn[playerid] = 0;
	gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
	gSpeedo[playerid] = 0; gGas[playerid] = 0;
	gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerConta[playerid] = 0;
	gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
	PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
	StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
	MatsHolding[playerid] = 0; TutTime[playerid] = 0;
	gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; CopsrondaAccepted[playerid] = 999;
	PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
	HireCar[playerid] = 0; PlayersChannel[playerid] = 999;
	TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
	Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;
	WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
	Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
	ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
	GivePlayerMoneyEx(playerid,PlayerInfo[playerid][pCash]);
	InAFoodPlace[playerid] = 0;
	OnEquipado[playerid] = 0;
	PlayerInfo[playerid][pBan] = 0;
	PlayerInfo[playerid][pVoto] = 0;
	PlayerInfo[playerid][pCaixinha] = 0;
	PlayerInfo[playerid][pRecebeuSalario] = 0;
	PlayerInfo[playerid][pAjustado] = 0;
	KenInfo[playerid][PpCofreOrg] = 0;
	KenInfo[playerid][PpLicencas] = 0;
	KenInfo[playerid][PLojaA1] = 0;
	KenInfo[playerid][PLojaA2] = 0;
	KenInfo[playerid][PpLoja247] = 0;
	KenInfo[playerid][PpLoja2472] = 0;
	KenInfo[playerid][DBGuerra] = 0;
	PlayerInfo[playerid][pLevel] = 0;
	PlayerInfo[playerid][pAdmin] = 0;
	PlayerInfo[playerid][pSocio] = 0;
	PlayerInfo[playerid][pVIP] = 0;
	PlayerInfo[playerid][VipVaga] = 0;
	PlayerInfo[playerid][pProcurado1] = 0;
	PlayerInfo[playerid][pProcurado2] = 0;
 	PlayerInfo[playerid][vipID] = 255;
	PlayerInfo[playerid][adminID] = 255;
	PlayerInfo[playerid][gPupgrade] = 0;
	PlayerInfo[playerid][pConnectTime] = 0;
	PlayerInfo[playerid][pReg] = 0;
	PlayerInfo[playerid][pSex] = 0;
	PlayerInfo[playerid][pFamily] = 0;
	PlayerInfo[playerid][pAge] = 0;
	PlayerInfo[playerid][pOrigem] = 0;
	PlayerInfo[playerid][pExp] = 0;
	PlayerInfo[playerid][pConta] = 0;
	PlayerInfo[playerid][pCrimes] = 0;
	PlayerInfo[playerid][pDeaths] = 0;
	PlayerInfo[playerid][pArrested] = 0;
	PlayerInfo[playerid][pWantedDeaths] = 0;
	PlayerInfo[playerid][pPhoneBook] = 0;
	PlayerInfo[playerid][pLottoNr] = 0;
	PlayerInfo[playerid][pFishes] = 0;
	PlayerInfo[playerid][pBiggestFish] = 0;
	PlayerInfo[playerid][pEmprego] = 0;
	PlayerInfo[playerid][pPayCheck] = 0;
	PlayerInfo[playerid][pHeadValue] = 0;
	PlayerInfo[playerid][pJailed] = 0;
	PlayerInfo[playerid][pJailTime] = 0;
	PlayerInfo[playerid][pHotel] = 0;
	PlayerInfo[playerid][pHotelTime] = 0;
	PlayerInfo[playerid][pMats] = 0;
	PlayerInfo[playerid][pDrogas] = 0;
	PlayerInfo[playerid][pDrogas2] = 0;
	PlayerInfo[playerid][pDrogas3] = 0;
	PlayerInfo[playerid][pSafeDrogas] = 0;
	PlayerInfo[playerid][pSafeDrogas2] = 0;
	PlayerInfo[playerid][pSafeDrogas3] = 0;
	PlayerInfo[playerid][pBalinha] = 0;
	PlayerInfo[playerid][pLider] = 0;
	PlayerInfo[playerid][pMembro] = 0;
	PlayerInfo[playerid][pFMember] = 255;
	PlayerInfo[playerid][pCargo] = 0;
	PlayerInfo[playerid][pChar] = 0;
	PlayerInfo[playerid][pContractTime] = 0;
	PlayerInfo[playerid][pDetSkill] = 0;
	PlayerInfo[playerid][pSexSkill] = 0;
	PlayerInfo[playerid][pBoxSkill] = 0;
	PlayerInfo[playerid][pLawSkill] = 0;
	PlayerInfo[playerid][pMechSkill] = 0;
	PlayerInfo[playerid][pJackSkill] = 0;
	PlayerInfo[playerid][pCarSkill] = 0;
	PlayerInfo[playerid][pNewsSkill] = 0;
	PlayerInfo[playerid][pDrogasSkill] = 0;
	PlayerInfo[playerid][pBalinhaSkill] = 0;
	PlayerInfo[playerid][pCookSkill] = 0;
	PlayerInfo[playerid][pFishSkill] = 0;
	PlayerInfo[playerid][pSHealth] = 50.0;
	PlayerInfo[playerid][pHealth] = 100.0;
	PlayerInfo[playerid][pPos_x] = 2246.6;
	PlayerInfo[playerid][pPos_y] = -1161.9;
	PlayerInfo[playerid][pPos_z] = 1029.7;
	PlayerInfo[playerid][pInt] = 15;
	PlayerInfo[playerid][pLocal] = 255;
	PlayerInfo[playerid][pTeam] = 3;
	PlayerInfo[playerid][pModel] = 137;
	admadministrando[playerid] = 0;
	new randphone = 1000 + random(9999);//minimum 1000  max 9999 //giving one at the start
	PlayerInfo[playerid][pPnumber] = randphone;
	PlayerInfo[playerid][pPHousekey] = 255;
	PlayerInfo[playerid][pPbiskey] = 255;
	PlayerInfo[playerid][pCarLic] = 0;
	PlayerInfo[playerid][pEstagiario] = 0;
	PlayerInfo[playerid][pFlyLic] = 0;
	PlayerInfo[playerid][pBoatLic] = 0;
	PlayerInfo[playerid][pFishLic] = 0;
	PlayerInfo[playerid][pGunLic] = 0;
	PlayerInfo[playerid][pGun1] = 0;
	PlayerInfo[playerid][pGun2] = 0;
	PlayerInfo[playerid][pGun3] = 0;
	PlayerInfo[playerid][pGun4] = 0;
	PlayerInfo[playerid][pAmmo1] = 0;
	PlayerInfo[playerid][pAmmo2] = 0;
	PlayerInfo[playerid][pAmmo3] = 0;
	PlayerInfo[playerid][pAmmo4] = 0;
	PlayerInfo[playerid][pCarTime] = 0;
	PlayerInfo[playerid][pPayDay] = 0;
	PlayerInfo[playerid][pPayDayHad] = 0;
	PlayerInfo[playerid][pCDPlayer] = 0;
	PlayerInfo[playerid][pWins] = 0;
	PlayerInfo[playerid][pLoses] = 0;
	PlayerInfo[playerid][pAlcoholPerk] = 0;
	PlayerInfo[playerid][pDrugPerk] = 0;
	PlayerInfo[playerid][pMiserPerk] = 0;
	PlayerInfo[playerid][pPainPerk] = 0;
	PlayerInfo[playerid][pTraderPerk] = 0;
	PlayerInfo[playerid][pTut] = 0;
	PlayerInfo[playerid][pMissionNr] = 0;
	PlayerInfo[playerid][pwarns] = 0;
	PlayerInfo[playerid][pFuel] = 0;
	PlayerInfo[playerid][pAdjustable] = 0;
	strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
	strmid(PlayerInfo[playerid][pPremmyExpire], "0/0/0", 0, strlen("0/0/0"),255);
	PlayerInfo[playerid][pRoadblock] = 0;
	PlayerInfo[playerid][pRoadPregos] = 0;
	PlayerInfo[playerid][pRequestingBackup] = 0;
	PlayerInfo[playerid][pMask] = 0;
	strmid(PlayerInfo[playerid][pMotivo], "Nenhum", 0, strlen("Nenhum"), 255);
	strmid(PlayerInfo[playerid][pAdminName], "Nenhum", 0, strlen("Nenhum"), 255);
	PlayerInfo[playerid][pMaskuse] = 0;
	PlayerInfo[playerid][pBarraca] = 0;
	ClearCrime(playerid);
	ClearFishes(playerid);
	ClearCooking(playerid);
	ClearGroceries(playerid);
	ClearMarriage(playerid);
	SetPlayerColor(playerid,COLOR_GRAD2);
	GetPlayerName(playerid, plname, sizeof(plname));
	format(string, sizeof(string), "Contas/%s.ini", plname);
	//SendClientMessage(playerid, COLOR_LIGHTBLUE, "Espere alguns segundos...");
	GameTextForPlayer(playerid, " ~b~RPG ~Y~HEROES ~g~BRASIL ~n~O~R~W~Y~N~P~A", 15000, 6);
	TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	//mapaicone
	SetPlayerMapIcon(playerid, 1,-1956.6346,293.0974,35.4688, 55, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 2,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 3,2802.2051,-1180.1276,25.5363, 60, 0xE6E6E6E6);//vagos
	SetPlayerMapIcon(playerid, 4,2516.1411,-1675.4065,13.9113, 62, 0xE6E6E6E6);//grove
	SetPlayerMapIcon(playerid, 5,2351.1853,-1914.6248,13.5427, 58, 0xE6E6E6E6);//aztec
	SetPlayerMapIcon(playerid, 6,1104.2330,-1207.0009,17.8047, 59, 0xE6E6E6E6);//ballas
	SetPlayerMapIcon(playerid, 7,1480.9403,-1770.8481,18.7958, 56, 0xE6E6E6E6);//Prefeitura
	SetPlayerMapIcon(playerid, 9,2243.6750,-1669.8136,21.0313, 45, 0xE6E6E6E6);//Binco
	SetPlayerMapIcon(playerid, 10,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
	SetPlayerMapIcon(playerid, 11,1070.3787,-1873.8467,13.5469, 18, 0xE6E6E6E6);//Loja de Armas 2
	SetPlayerMapIcon(playerid, 12,1349.7722,-1755.5264,13.3520, 17, 0xE6E6E6E6); // 24/7
	SetPlayerMapIcon(playerid, 13,1831.4314,-1842.5146,13.5781, 17, 0xE6E6E6E6); // SEGUNDA 24/7
	SetPlayerMapIcon(playerid, 14,2795.7832,-1329.9231,32.3265, 31, 0xE6E6E6E6); // - condominio2-
	SetPlayerMapIcon(playerid, 15,2139.4204,-1176.4689,23.9922, 32, 0xE6E6E6E6); // - empresacarro
	SetPlayerMapIcon(playerid, 16,1415.8468,-1693.0602,13.5469, 32, 0xE6E6E6E6); // - empresaenergia
	SetPlayerMapIcon(playerid, 17,1928.8269,-1776.4055,13.5469, 32, 0xE6E6E6E6); // - empresagasulina
	SetPlayerMapIcon(playerid, 18,1775.4338,-1706.3094,13.5234, 32, 0xE6E6E6E6); // - empresadeanuncio
	SetPlayerMapIcon(playerid, 19,1310.1265,-1367.8122,13.5408, 32, 0xE6E6E6E6); // - paintball
	SetPlayerMapIcon(playerid, 20,2350.0000,-1411.8000,23.9923, 32, 0xE6E6E6E6); // - UpCasa
	SetPlayerMapIcon(playerid, 21,1205.9715,-1459.6737,13.3859, 32, 0xE6E6E6E6); // - ArmasdosCopa
	SetPlayerMapIcon(playerid, 22,1182.7567,-1242.9381,17.4995, 31, 0xE6E6E6E6); // - condominio3-
	SetPlayerMapIcon(playerid, 23,294.0238,-1602.5834,32.8331, 32, 0xE6E6E6E6); // - BrasilTelecon =)
	SetPlayerMapIcon(playerid, 24,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 25,1373.4950,405.3371,19.9555, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 26,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
	SetPlayerMapIcon(playerid, 27,1027.9030,-355.8242,73.9548, 30 , 0xE6E6E6E6);//HQ ALFANDEGA
    SetPlayerMapIcon(playerid, 28,2023.7308,-1424.4435,16.3137, 22 , 0xE6E6E6E6);//HQ Medico
	SetPlayerMapIcon(playerid, 30,1655.3055,-1341.8470,17.4294, 23 , 0xE6E6E6E6);//HQ Prefeito
    SetPlayerMapIcon(playerid, 31,-329.6229,1535.2339,75.5625, 12 , 0xE6E6E6E6);//HQ Heroes
    SetPlayerMapIcon(playerid, 32,1011.9985,-1445.8608,13.5546, 13 , 0xE6E6E6E6);//HQ CV
    SetPlayerMapIcon(playerid, 33,-1956.6346,293.0974,35.4688, 55, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 34,-2650.0022,375.9881,6.1563, 30, 0xE6E6E6E6);//dp pm
	SetPlayerMapIcon(playerid, 35,-1666.3496,1364.9711,6.8285, 40, 0xE6E6E6E6);//TT
	SetPlayerMapIcon(playerid, 36,-2462.9438,791.9480,34.8774, 62, 0xE6E6E6E6);//grove
	SetPlayerMapIcon(playerid, 37,-2463.5513,131.8371,35.1719, 58, 0xE6E6E6E6);//aztec
	SetPlayerMapIcon(playerid, 38,-1885.0505,-201.5969,15.4974, 59, 0xE6E6E6E6);//ballas
	SetPlayerMapIcon(playerid, 39,-2765.2856,375.6439,6.3359, 44, 0xE6E6E6E6);//Prefeitura
	SetPlayerMapIcon(playerid, 40,-1694.3472,951.0661,24.8906, 45, 0xE6E6E6E6);//Binco
	SetPlayerMapIcon(playerid, 41,-1754.1906,963.2577,24.8828, 52, 0xE6E6E6E6);//Banco
	SetPlayerMapIcon(playerid, 42,-1605.5298,712.7885,13.8477, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 43,-2236.9390,2354.2004,4.9799, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 44,-2442.4121,531.5734,29.9192, 30 ,0xE6E6E6E6);//Heroes
	SetPlayerMapIcon(playerid, 45,-2668.8523,610.5510,14.4545, 22 , 0xE6E6E6E6);//HQ Medico SF
	SetPlayerMapIcon(playerid, 46, 952.5583,-909.3518,45.7656,36,0);//autoescola
	/*GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZBoca2, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZQuadra, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZBoca3, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZBoca1, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);*/
	
	if(donoestacao == 0)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
    }
    if(donoestacao == 1)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
    }
    if(donoestacao == 2)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
    }
    if(donoestacao == 3)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_ALFANDEGA);
    }
    if(donocasarao == 0)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
    }
    if(donocasarao == 1)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
    }
    if(donocasarao == 2)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
    }
    if(donocasarao == 3)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_ALFANDEGA);
    }
	if(donofavela == 0)
	{
	GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
	}
	if(donofavela == 1)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_GROVE_COLOR);
	}
	if(donofavela == 2)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_BALLAS_COLOR);
	}
	if(donofavela == 3)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_VAGOS_COLOR);
	}
	if(donofavela == 4)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_AZTECAS_COLOR);
	}
	if(donofavela == 5)
	{
	GangZoneShowForPlayer(playerid, GZFavela, COLOR_ROTAM);
	}
	if(donofavela == 6)
	{
	GangZoneShowForPlayer(playerid, GZFavela, GCOP_COLOR);
	}
	if(donofavela == 7)
	{
	GangZoneShowForPlayer(playerid, GZFavela, GMOB);
	}
	if(donoindustria == 0)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, 0xC0C0C0AA);
	}
	if(donoindustria == 1)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_GROVE_COLOR);
	}
	if(donoindustria == 2)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_BALLAS_COLOR);
	}
	if(donoindustria == 3)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_VAGOS_COLOR);
	}
	if(donoindustria == 4)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_AZTECAS_COLOR);
	}
	if(donoindustria == 5)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, COLOR_ROTAM);
	}
	if(donoindustria == 6)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, GCOP_COLOR);
	}
	if(donoindustria == 7)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, GMOB);
	}
	if(donoriacho == 0)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, 0xC0C0C0AA);
	}
	if(donoriacho == 1)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_GROVE_COLOR);
	}
	if(donoriacho == 2)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_BALLAS_COLOR);
	}
	if(donoriacho == 3)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_VAGOS_COLOR);
	}
	if(donoriacho == 4)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_AZTECAS_COLOR);
	}
	if(donoriacho == 5)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, COLOR_ROTAM);
	}
	if(donoriacho == 6)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, GCOP_COLOR);
	}
	if(donoriacho == 7)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, GMOB);
	}
	if(donoBoca1 == 0)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, 0xC0C0C0AA);
	}
	if(donoBoca1 == 1)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_GROVE_COLOR);
	}
	if(donoBoca1 == 2)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_BALLAS_COLOR);
	}
	if(donoBoca1 == 3)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_VAGOS_COLOR);
	}
	if(donoBoca1 == 4)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_AZTECAS_COLOR);
	}
	if(donoBoca1 == 5)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, COLOR_ROTAM);
	}
	if(donoBoca1 == 6)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, GCOP_COLOR);
	}
	if(donoBoca1 == 7)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, GMOB);
	}
	
	if(donopark == 0)
	{
	GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
	}
	if(donopark == 1)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_GROVE_COLOR);
	}
	if(donopark == 2)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_BALLAS_COLOR);
	}
	if(donopark == 3)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
	}
	if(donopark == 4)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_AZTECAS_COLOR);
	}
	if(donopark == 5)
	{
	GangZoneShowForPlayer(playerid, GZPark, COLOR_ROTAM);
	}
	if(donopark == 6)
	{
	GangZoneShowForPlayer(playerid, GZPark, GCOP_COLOR);
	}
	if(donopark == 7)
	{
	GangZoneShowForPlayer(playerid, GZPark, GMOB);
	}

	if(donoquadra == 0)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, 0xC0C0C0AA);
	}
	if(donoquadra == 1)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_GROVE_COLOR);
	}
	if(donoquadra == 2)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_BALLAS_COLOR);
	}
	if(donoquadra == 3)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_VAGOS_COLOR);
	}
	if(donoquadra == 4)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_AZTECAS_COLOR);
	}
	if(donoquadra == 5)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, COLOR_ROTAM);
	}
	if(donoquadra == 6)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, GCOP_COLOR);
	}
	if(donoquadra == 7)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, GMOB);
	}

	if(donoBoca2 == 0)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, 0xC0C0C0AA);
	}
	if(donoBoca2 == 1)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_GROVE_COLOR);
	}
	if(donoBoca2 == 2)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_BALLAS_COLOR);
	}
	if(donoBoca2 == 3)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_VAGOS_COLOR);
	}
	if(donoBoca2 == 4)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_AZTECAS_COLOR);
	}
	if(donoBoca2 == 5)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, COLOR_ROTAM);
	}
	if(donoBoca2 == 6)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, GCOP_COLOR);
	}
	if(donoBoca2 == 7)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, GMOB);
	}

	if(donoBoca3 == 0)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, 0xC0C0C0AA);
	}
	if(donoBoca3 == 1)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_GROVE_COLOR);
	}
	if(donoBoca3 == 2)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_BALLAS_COLOR);
	}
	if(donoBoca3 == 3)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_VAGOS_COLOR);
	}
	if(donoBoca3 == 4)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_AZTECAS_COLOR);
	}
	if(donoBoca3 == 5)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, COLOR_ROTAM);
	}
	if(donoBoca3 == 6)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, GCOP_COLOR);
	}
	if(donoBoca3 == 7)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, GMOB);
	}
	
	//========== SAN FIERRO - GZs - INICIO =======//
	if(donoFonteSF == 0){GangZoneShowForPlayer(playerid, GZFonteSF, 0xC0C0C0AA);}
	if(donoFonteSF == 1){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_GROVE_COLOR);}
	if(donoFonteSF == 2){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_BALLAS_COLOR);}
	if(donoFonteSF == 3){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_VAGOS_COLOR);}
	if(donoFonteSF == 4){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_AZTECAS_COLOR);}
	if(donoFonteSF == 5){GangZoneShowForPlayer(playerid, GZFonteSF, COLOR_ROTAM);}
	if(donoFonteSF == 6){GangZoneShowForPlayer(playerid, GZFonteSF, GCOP_COLOR);}
	if(donoFonteSF == 7){GangZoneShowForPlayer(playerid, GZFonteSF, GMOB);}
	if(donoShoppingSF == 0){GangZoneShowForPlayer(playerid, GZShoppingSF, 0xC0C0C0AA);}
	if(donoShoppingSF == 1){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_GROVE_COLOR);}
	if(donoShoppingSF == 2){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_BALLAS_COLOR);}
	if(donoShoppingSF == 3){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_VAGOS_COLOR);}
	if(donoShoppingSF == 4){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_AZTECAS_COLOR);}
	if(donoShoppingSF == 5){GangZoneShowForPlayer(playerid, GZShoppingSF, COLOR_ROTAM);}
	if(donoShoppingSF == 6){GangZoneShowForPlayer(playerid, GZShoppingSF, GCOP_COLOR);}
	if(donoShoppingSF == 7){GangZoneShowForPlayer(playerid, GZShoppingSF, GMOB);}
	if(donoConstrucaoSF == 0){GangZoneShowForPlayer(playerid, GZConstrucaoSF, 0xC0C0C0AA);}
	if(donoConstrucaoSF == 1){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_GROVE_COLOR);}
	if(donoConstrucaoSF == 2){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_BALLAS_COLOR);}
	if(donoConstrucaoSF == 3){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_VAGOS_COLOR);}
	if(donoConstrucaoSF == 4){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_AZTECAS_COLOR);}
	if(donoConstrucaoSF == 5){GangZoneShowForPlayer(playerid, GZConstrucaoSF, COLOR_ROTAM);}
	if(donoConstrucaoSF == 6){GangZoneShowForPlayer(playerid, GZConstrucaoSF, GCOP_COLOR);}
	if(donoConstrucaoSF == 7){GangZoneShowForPlayer(playerid, GZConstrucaoSF, GMOB);}
	if(donoAeroSF == 0){GangZoneShowForPlayer(playerid, GZAeroSF, 0xC0C0C0AA);}
	if(donoAeroSF == 1){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_GROVE_COLOR);}
	if(donoAeroSF == 2){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_BALLAS_COLOR);}
	if(donoAeroSF == 3){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_VAGOS_COLOR);}
	if(donoAeroSF == 4){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_AZTECAS_COLOR);}
	if(donoAeroSF == 5){GangZoneShowForPlayer(playerid, GZAeroSF, COLOR_ROTAM);}
	if(donoAeroSF == 6){GangZoneShowForPlayer(playerid, GZAeroSF, GCOP_COLOR);}
	if(donoAeroSF == 7){GangZoneShowForPlayer(playerid, GZAeroSF, GMOB);}
	if(donoPraiaSF == 0){GangZoneShowForPlayer(playerid, GZPraiaSF, 0xC0C0C0AA);}
	if(donoPraiaSF == 1){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_GROVE_COLOR);}
	if(donoPraiaSF == 2){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_BALLAS_COLOR);}
	if(donoPraiaSF == 3){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_VAGOS_COLOR);}
	if(donoPraiaSF == 4){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_AZTECAS_COLOR);}
	if(donoPraiaSF == 5){GangZoneShowForPlayer(playerid, GZPraiaSF, COLOR_ROTAM);}
	if(donoPraiaSF == 6){GangZoneShowForPlayer(playerid, GZPraiaSF, GCOP_COLOR);}
	if(donoPraiaSF == 7){GangZoneShowForPlayer(playerid, GZPraiaSF, GMOB);}
    //========== SAN FIERRO - GZs - FIM =======//

	ClearChatbox(playerid, 100);
	if(fexist(string))
	{
	    //ClearChatbox(playerid, 8);
		gPlayerConta[playerid] = 1;
		/*SendClientMessage(playerid, COLOR_MSG, "[RHB]]: Este Nick й Cadastrado, Por Favor Se Logue");
		SendClientMessage(playerid, COLOR_MSG, "[RHB]]: Vocк pode, agora, Digita: /logar [senha]");
		//SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: Sonic_FreeStyle ) <==-");
		return 1;*/
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{FFFF00}Login RHB", "{33CCFF}******************************************\n{33FF00}Bem Vindo ao [RHB] Rpg Heroes Brasil [RPG v1.0] \n{33FF00}Sua conta foi Registrada! \n\n{33FF00}Por favor logue na sua conta!!\n{33CCFF}******************************************", "Logar", "Sair");
		//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	}
	else
	{
	    //ClearChatbox(playerid, 8);
		gPlayerConta[playerid] = 0;
		/*SendClientMessage(playerid,COLOR_MSG,"Voce nгo tem uma conta! digite /registrar [Senha]");
		SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: Sonic_FreeStyle ) <==-");
		return 1;*/

ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{FFFF00}Registrar RHB", "{33CCFF}******************************************\n{33FF00}Bem Vindo ao [RHB] Rpg Heroes Brasil [RPG v1.0] \n{33FF00}Sua conta nao esta registrada! \n\n{33FF00}Por favor, registre-se!!\n{33CCFF}******************************************", "Registrar", "Sair");
		//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	}
	return 1;
}
2° On player register
Код:
public OnPlayerRegister(playerid, password[])
{
	if(IsPlayerConnected(playerid))
	{
			new string3[32];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "Contas/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
			    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
			    new var[32];
				format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				PlayerInfo[playerid][pCash] = GetPlayerMoneyEx(playerid);
				format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
				format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
				format(var, 32, "SocioLevel=%d\n",PlayerInfo[playerid][pSocio]);fwrite(hFile, var);
				format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
				format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
				format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
				format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
				format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
				format(var, 32, "Familia=%d\n",PlayerInfo[playerid][pFamily]);fwrite(hFile, var);
				format(var, 32, "origin=%d\n",PlayerInfo[playerid][pOrigem]);fwrite(hFile, var);
				format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
				format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
				format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
				format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pConta]);fwrite(hFile, var);
				format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
				format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
				format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
				format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
				format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
				format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
				format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
				format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
				format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
				format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
				format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
				format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
				format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
				format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
				format(var, 32, "Materiais=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
				format(var, 32, "Maconha=%d\n",PlayerInfo[playerid][pDrogas]);fwrite(hFile, var);
				format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pDrogas2]);fwrite(hFile, var);
				format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pDrogas3]);fwrite(hFile, var);
				format(var, 32, "Balinhas=%d\n",PlayerInfo[playerid][pBalinha]);fwrite(hFile, var);
				format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
				format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
				format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
				format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
				format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
				format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
				format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
				format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
				format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
				format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
				format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
				format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
				format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
				format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
				format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
				format(var, 32, "BalinhaSkill=%d\n",PlayerInfo[playerid][pBalinhaSkill]);fwrite(hFile, var);
				format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
				format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
				format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
	            GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
				format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
				format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
				format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
				format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
				format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
				format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
				format(var, 32, "House=%d\n",PlayerInfo[playerid][pPHousekey]);fwrite(hFile, var);
				format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
				format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
				format(var, 32, "Ban=%d\n",PlayerInfo[playerid][pBan]);fwrite(hFile, var);
				format(var, 32, "SafeMaconha=%d\n",PlayerInfo[playerid][pSafeDrogas]);fwrite(hFile, var);
				format(var, 32, "SafeCocaina=%d\n",PlayerInfo[playerid][pSafeDrogas2]);fwrite(hFile, var);
				format(var, 32, "SafeCrack=%d\n",PlayerInfo[playerid][pSafeDrogas3]);fwrite(hFile, var);
				if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
				{
					PlayerInfo[playerid][pPos_x] = 1684.9;
					PlayerInfo[playerid][pPos_y] = -2244.5;
					PlayerInfo[playerid][pPos_z] = 13.5;
				}
				if(Spectate[playerid] != 255)
				{
					PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
					PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
					PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
					PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
					PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
				}
				format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
				format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
				format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
				format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
				format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
				format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
				format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
				format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
				format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
				format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
				format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
				format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
				format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
				format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
				format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
				format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
				format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
				format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
				format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
				format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
				format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
				format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
				format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
				format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
				format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
				format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
				format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
				format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
				format(var, 32, "Avisos=%d\n",PlayerInfo[playerid][pwarns]);fwrite(hFile, var);
				format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
				format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
				format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
				format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
				format(var, 32, "PontosCadeia=%d\n",PlayerInfo[playerid][pProcurado1]);fwrite(hFile, var);
				format(var, 32, "NivelProcurado=%d\n",PlayerInfo[playerid][pProcurado2]);fwrite(hFile, var);
				format(var, 32, "SafeMateriais=%d\n",PlayerInfo[playerid][psMats]);fwrite(hFile, var);
				format(var, 32, "Galao1=%d\n",PlayerInfo[playerid][pGalao1]);fwrite(hFile, var);
				format(var, 32, "Galao2=%d\n",PlayerInfo[playerid][pGalao2]);fwrite(hFile, var);
				format(var, 32, "Galao3=%d\n",PlayerInfo[playerid][pGalao3]);fwrite(hFile, var);
				format(var, 32, "DataLogin=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
				format(var, 32, "PremmyExpire=%s\n",PlayerInfo[playerid][pPremmyExpire]);fwrite(hFile, var);
				format(var, 32, "AdminName=%s\n",PlayerInfo[playerid][pAdminName]);fwrite(hFile, var);
				format(var, 32, "Motivo=%s\n",PlayerInfo[playerid][pMotivo]);fwrite(hFile, var);
				format(var, 32, "Estagiario=%d\n",PlayerInfo[playerid][pEstagiario]);fwrite(hFile, var);
				format(var, 32, "Voto=%d\n",PlayerInfo[playerid][pVoto]);fwrite(hFile, var);
				format(var, 32, "Caixinha=%d\n",PlayerInfo[playerid][pCaixinha]);fwrite(hFile, var);
				format(var, 32, "Ajustado=%d\n",PlayerInfo[playerid][pAjustado]);fwrite(hFile, var);
				format(var, 32, "Pagamento=%d\n",PlayerInfo[playerid][pRecebeuSalario]);fwrite(hFile, var);
				fclose(hFile);
				TotalRegistro++;
			    SalvarNumeroRegistrados();
			    SendClientMessage(playerid, 0x00F6F6AA, "[RHB]] Conta registrada digite : (/logar [Senha]).");
			}
	}
	return 1;
}
3°ZCMD
Reply
#4

Manolo posta o seu OnPlayerRequestClass para ver o caso da conta etc..

E o bang dos veнculos vocк assim exemplo:
PHP код:
no topo do GM:
new 
vehcops[10];
emOnGameModeInit..
vehcops[0] = CreateVehicle...
vehcops[1] = CreateVehicle...
vehcops[2] = CreateVehicle...
emOnPlayerStateChange..
if(
newstate == PLAYER_STATE_DRIVER)
{
    if(
GetPlayerVehicleID(playerid) == vehcops[0] || GetPlayerVehicleID(playerid) == vehcops[1] || GetPlayerVehicleID(playerid) == vehcops[2])
    {
           if(
Profissao[playerid] == POLICIAL)
        {
            
SendClientMessage(playerid, -1"Seja bem vindo policial viado!");
        }
        else
        {
            
RemovePlayerFromVehicle(playerid);
        }
    }
    return 
1;

Reply
#5

1° on player connect й gigante mas...
Код:
public OnPlayerConnect(playerid)
{
if (gdebug >= 1){printf("Player[id %d] conectado no server.", playerid);}
	new bitch[256];
	Online++;
	GetPlayerName(playerid,bitch,sizeof(bitch));
	format(bitch,sizeof(bitch),"[SERVER] %s Estб Entrando No [RHB] Rpg Heroes Brasil [%d Online]",bitch,Online);
    SendClientMessageToAll(COLOR_WHITE,bitch);
    new string2[255];
    new string3[255];
//================================================================================================
 	if(Security != 0)
	{
	    SendClientMessage(playerid, COLOR_YELLOW, "Para jogar aqui, voce tem que cumprir as regras.");
	    return 1;
	}

    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    SendAdminMessage(COLOR_YELLOW, string2);

	new playerName[MAX_PLAYER_NAME],f;
	GetPlayerName(playerid,playerName,MAX_PLAYER_NAME);
	if(strfind(playerName,"_",true,1)!=-1)
	f=1;
	if(playerName[strlen(playerName)-1]=='_')
    f=0;
	for(new i=0;i<strlen(playerName);i++)
	if((playerName[i]<='9')&&(playerName[i]>='0'))
	f=0;
	if(!f)
	{
    GetPlayerName(playerid, pName, sizeof(pName));
	format(string2, sizeof(string2), "Vocк foi kickado, Motivo: Nome_Sobrenome mude o  Formato", pName);
	SendClientMessage(playerid, COLOR_LIGHTRED, string2);
	Kick(playerid);
	format(string3, sizeof(string3), "AdmCmd: %s foi kickado por [ADMINBOT], Motivo: Use Nome_Sobrenome", pName);
	SendClientMessage(playerid,COLOR_LIGHTRED,"* Seu nickname nгo estб devidamente correto para conectar-se !");
    SendClientMessage(playerid,COLOR_WHITE,"NOTA: Aqui vocк sу poderб jogar com o nickname nos dados 'Nome_Sobrenome',");
	SendClientMessage(playerid,COLOR_WHITE,"vc tem que por seu nome e apilido EXEMPLO:Sonic_FreeStyle!!!,");
	SendClientMessage(playerid,COLOR_WHITE,"esse sistema й escolhido pela diversidade de pessoas possнveis a conexгo e hacks de server,");
    SendClientMessage(playerid,COLOR_WHITE,"й bem ъtil para facilitar o uso de comandos, funзхes e comunicaзгo social no servidor.");
    SendClientMessage(playerid,COLOR_WHITE,"esse sistema foi criador por Sonic_FreeStyle.");
	SendClientMessageToAll(COLOR_LIGHTRED, string3);
	}
    //TextDrawShowForPlayer(playerid, Textdraw0);
    CarColor[playerid][0] = 1;
	CarColor[playerid][1] = 1;
    PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
    new ipstring[256];
	new IPlogName[MAX_PLAYER_NAME];
	new PlayerIP[256];
	GetPlayerName(playerid, IPlogName, sizeof(IPlogName));
	GetPlayerIp(playerid,PlayerIP, sizeof(PlayerIP));
	new year, month,day;
	getdate(year, month, day);
	new hour, minute;
	gettime(hour,minute);
	format(ipstring, sizeof(ipstring), "%s IP: %s DATA ( %d/%d/%d - %d:%d )", IPlogName,PlayerIP,year, month, day,hour, minute);
    IPLog(ipstring);
    MorroShowForPlayer(playerid);
	for(new t = 0; t < sizeof(Territorio); t++)
	{
		if(Territorio[t][TRON] >= 1)
		{
			GangZoneShowForPlayer(playerid,Territorio[t][TRID],Territorio[t][CorTR]);
			if(Territorio[t][TRGuerra] >= 1)
			{
				GangZoneFlashForPlayerEx(playerid,Territorio[t][TRID]);
			}
		}
	}
	if(Morro[Guerra] >= 1)
	{
	    MorroFlashForPlayer(playerid);
	}
    OnPlayerCommandText(playerid,"/bkclimacmd 5");//Faz o clima ficar igual ao do RHB,jamais apague essa linha '-'
    SetPlayerInterior(playerid, 0);
	SetPlayerPos(playerid, 1241.8787,-1693.4835,16.1940);
	SetPlayerFacingAngle(playerid, 183.6818);
	SetPlayerCameraPos(playerid, 1241.8787,-1693.4835,16.1940);
	SetPlayerCameraLookAt(playerid, 1243.1785,-1729.0465,13.5781);
	GetPlayerName(playerid, NOMEDAPESSOA, sizeof(NOMEDAPESSOA));
	gActivePlayers[playerid]++;
	numplayers++;
	new plname[MAX_PLAYER_NAME];
	new string[MAX_PLAYER_NAME];
	SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
	SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
	GettingEmprego[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
	GalaoOffer[playerid] = 999; GalaoPrice[playerid] = 0;
	AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
    ApprovedAdvogado[playerid] = 0; CallAdvogado[playerid] = 0; WantAdvogado[playerid] = 0;
	CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
	CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;
	CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
	RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
	STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
	RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
	TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
	RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
	DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
	DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
	DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
	JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
 	GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0;
	BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0;
	SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
	BusCallTime[playerid] = 0; CopsrondaCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; AdvogadosCallTime[playerid] = 0;
	BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
	FindTimePoints[playerid] = 0; FindTime[playerid] = 0; EmpregoDuty[playerid] = 0;
	Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
	Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
	Unspec[playerid][sLocal] = 255; FishCornt[playerid] = 0;
	WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
	PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0; FirstSpawn[playerid] = 0;
	gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
	gSpeedo[playerid] = 0; gGas[playerid] = 0;
	gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerConta[playerid] = 0;
	gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
	PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
	StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
	MatsHolding[playerid] = 0; TutTime[playerid] = 0;
	gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; CopsrondaAccepted[playerid] = 999;
	PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
	HireCar[playerid] = 0; PlayersChannel[playerid] = 999;
	TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
	Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;
	WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
	Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
	ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
	GivePlayerMoneyEx(playerid,PlayerInfo[playerid][pCash]);
	InAFoodPlace[playerid] = 0;
	OnEquipado[playerid] = 0;
	PlayerInfo[playerid][pBan] = 0;
	PlayerInfo[playerid][pVoto] = 0;
	PlayerInfo[playerid][pCaixinha] = 0;
	PlayerInfo[playerid][pRecebeuSalario] = 0;
	PlayerInfo[playerid][pAjustado] = 0;
	KenInfo[playerid][PpCofreOrg] = 0;
	KenInfo[playerid][PpLicencas] = 0;
	KenInfo[playerid][PLojaA1] = 0;
	KenInfo[playerid][PLojaA2] = 0;
	KenInfo[playerid][PpLoja247] = 0;
	KenInfo[playerid][PpLoja2472] = 0;
	KenInfo[playerid][DBGuerra] = 0;
	PlayerInfo[playerid][pLevel] = 0;
	PlayerInfo[playerid][pAdmin] = 0;
	PlayerInfo[playerid][pSocio] = 0;
	PlayerInfo[playerid][pVIP] = 0;
	PlayerInfo[playerid][VipVaga] = 0;
	PlayerInfo[playerid][pProcurado1] = 0;
	PlayerInfo[playerid][pProcurado2] = 0;
 	PlayerInfo[playerid][vipID] = 255;
	PlayerInfo[playerid][adminID] = 255;
	PlayerInfo[playerid][gPupgrade] = 0;
	PlayerInfo[playerid][pConnectTime] = 0;
	PlayerInfo[playerid][pReg] = 0;
	PlayerInfo[playerid][pSex] = 0;
	PlayerInfo[playerid][pFamily] = 0;
	PlayerInfo[playerid][pAge] = 0;
	PlayerInfo[playerid][pOrigem] = 0;
	PlayerInfo[playerid][pExp] = 0;
	PlayerInfo[playerid][pConta] = 0;
	PlayerInfo[playerid][pCrimes] = 0;
	PlayerInfo[playerid][pDeaths] = 0;
	PlayerInfo[playerid][pArrested] = 0;
	PlayerInfo[playerid][pWantedDeaths] = 0;
	PlayerInfo[playerid][pPhoneBook] = 0;
	PlayerInfo[playerid][pLottoNr] = 0;
	PlayerInfo[playerid][pFishes] = 0;
	PlayerInfo[playerid][pBiggestFish] = 0;
	PlayerInfo[playerid][pEmprego] = 0;
	PlayerInfo[playerid][pPayCheck] = 0;
	PlayerInfo[playerid][pHeadValue] = 0;
	PlayerInfo[playerid][pJailed] = 0;
	PlayerInfo[playerid][pJailTime] = 0;
	PlayerInfo[playerid][pHotel] = 0;
	PlayerInfo[playerid][pHotelTime] = 0;
	PlayerInfo[playerid][pMats] = 0;
	PlayerInfo[playerid][pDrogas] = 0;
	PlayerInfo[playerid][pDrogas2] = 0;
	PlayerInfo[playerid][pDrogas3] = 0;
	PlayerInfo[playerid][pSafeDrogas] = 0;
	PlayerInfo[playerid][pSafeDrogas2] = 0;
	PlayerInfo[playerid][pSafeDrogas3] = 0;
	PlayerInfo[playerid][pBalinha] = 0;
	PlayerInfo[playerid][pLider] = 0;
	PlayerInfo[playerid][pMembro] = 0;
	PlayerInfo[playerid][pFMember] = 255;
	PlayerInfo[playerid][pCargo] = 0;
	PlayerInfo[playerid][pChar] = 0;
	PlayerInfo[playerid][pContractTime] = 0;
	PlayerInfo[playerid][pDetSkill] = 0;
	PlayerInfo[playerid][pSexSkill] = 0;
	PlayerInfo[playerid][pBoxSkill] = 0;
	PlayerInfo[playerid][pLawSkill] = 0;
	PlayerInfo[playerid][pMechSkill] = 0;
	PlayerInfo[playerid][pJackSkill] = 0;
	PlayerInfo[playerid][pCarSkill] = 0;
	PlayerInfo[playerid][pNewsSkill] = 0;
	PlayerInfo[playerid][pDrogasSkill] = 0;
	PlayerInfo[playerid][pBalinhaSkill] = 0;
	PlayerInfo[playerid][pCookSkill] = 0;
	PlayerInfo[playerid][pFishSkill] = 0;
	PlayerInfo[playerid][pSHealth] = 50.0;
	PlayerInfo[playerid][pHealth] = 100.0;
	PlayerInfo[playerid][pPos_x] = 2246.6;
	PlayerInfo[playerid][pPos_y] = -1161.9;
	PlayerInfo[playerid][pPos_z] = 1029.7;
	PlayerInfo[playerid][pInt] = 15;
	PlayerInfo[playerid][pLocal] = 255;
	PlayerInfo[playerid][pTeam] = 3;
	PlayerInfo[playerid][pModel] = 137;
	admadministrando[playerid] = 0;
	new randphone = 1000 + random(9999);//minimum 1000  max 9999 //giving one at the start
	PlayerInfo[playerid][pPnumber] = randphone;
	PlayerInfo[playerid][pPHousekey] = 255;
	PlayerInfo[playerid][pPbiskey] = 255;
	PlayerInfo[playerid][pCarLic] = 0;
	PlayerInfo[playerid][pEstagiario] = 0;
	PlayerInfo[playerid][pFlyLic] = 0;
	PlayerInfo[playerid][pBoatLic] = 0;
	PlayerInfo[playerid][pFishLic] = 0;
	PlayerInfo[playerid][pGunLic] = 0;
	PlayerInfo[playerid][pGun1] = 0;
	PlayerInfo[playerid][pGun2] = 0;
	PlayerInfo[playerid][pGun3] = 0;
	PlayerInfo[playerid][pGun4] = 0;
	PlayerInfo[playerid][pAmmo1] = 0;
	PlayerInfo[playerid][pAmmo2] = 0;
	PlayerInfo[playerid][pAmmo3] = 0;
	PlayerInfo[playerid][pAmmo4] = 0;
	PlayerInfo[playerid][pCarTime] = 0;
	PlayerInfo[playerid][pPayDay] = 0;
	PlayerInfo[playerid][pPayDayHad] = 0;
	PlayerInfo[playerid][pCDPlayer] = 0;
	PlayerInfo[playerid][pWins] = 0;
	PlayerInfo[playerid][pLoses] = 0;
	PlayerInfo[playerid][pAlcoholPerk] = 0;
	PlayerInfo[playerid][pDrugPerk] = 0;
	PlayerInfo[playerid][pMiserPerk] = 0;
	PlayerInfo[playerid][pPainPerk] = 0;
	PlayerInfo[playerid][pTraderPerk] = 0;
	PlayerInfo[playerid][pTut] = 0;
	PlayerInfo[playerid][pMissionNr] = 0;
	PlayerInfo[playerid][pwarns] = 0;
	PlayerInfo[playerid][pFuel] = 0;
	PlayerInfo[playerid][pAdjustable] = 0;
	strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
	strmid(PlayerInfo[playerid][pPremmyExpire], "0/0/0", 0, strlen("0/0/0"),255);
	PlayerInfo[playerid][pRoadblock] = 0;
	PlayerInfo[playerid][pRoadPregos] = 0;
	PlayerInfo[playerid][pRequestingBackup] = 0;
	PlayerInfo[playerid][pMask] = 0;
	strmid(PlayerInfo[playerid][pMotivo], "Nenhum", 0, strlen("Nenhum"), 255);
	strmid(PlayerInfo[playerid][pAdminName], "Nenhum", 0, strlen("Nenhum"), 255);
	PlayerInfo[playerid][pMaskuse] = 0;
	PlayerInfo[playerid][pBarraca] = 0;
	ClearCrime(playerid);
	ClearFishes(playerid);
	ClearCooking(playerid);
	ClearGroceries(playerid);
	ClearMarriage(playerid);
	SetPlayerColor(playerid,COLOR_GRAD2);
	GetPlayerName(playerid, plname, sizeof(plname));
	format(string, sizeof(string), "Contas/%s.ini", plname);
	//SendClientMessage(playerid, COLOR_LIGHTBLUE, "Espere alguns segundos...");
	GameTextForPlayer(playerid, " ~b~RPG ~Y~HEROES ~g~BRASIL ~n~O~R~W~Y~N~P~A", 15000, 6);
	TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	//mapaicone
	SetPlayerMapIcon(playerid, 1,-1956.6346,293.0974,35.4688, 55, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 2,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 3,2802.2051,-1180.1276,25.5363, 60, 0xE6E6E6E6);//vagos
	SetPlayerMapIcon(playerid, 4,2516.1411,-1675.4065,13.9113, 62, 0xE6E6E6E6);//grove
	SetPlayerMapIcon(playerid, 5,2351.1853,-1914.6248,13.5427, 58, 0xE6E6E6E6);//aztec
	SetPlayerMapIcon(playerid, 6,1104.2330,-1207.0009,17.8047, 59, 0xE6E6E6E6);//ballas
	SetPlayerMapIcon(playerid, 7,1480.9403,-1770.8481,18.7958, 56, 0xE6E6E6E6);//Prefeitura
	SetPlayerMapIcon(playerid, 9,2243.6750,-1669.8136,21.0313, 45, 0xE6E6E6E6);//Binco
	SetPlayerMapIcon(playerid, 10,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
	SetPlayerMapIcon(playerid, 11,1070.3787,-1873.8467,13.5469, 18, 0xE6E6E6E6);//Loja de Armas 2
	SetPlayerMapIcon(playerid, 12,1349.7722,-1755.5264,13.3520, 17, 0xE6E6E6E6); // 24/7
	SetPlayerMapIcon(playerid, 13,1831.4314,-1842.5146,13.5781, 17, 0xE6E6E6E6); // SEGUNDA 24/7
	SetPlayerMapIcon(playerid, 14,2795.7832,-1329.9231,32.3265, 31, 0xE6E6E6E6); // - condominio2-
	SetPlayerMapIcon(playerid, 15,2139.4204,-1176.4689,23.9922, 32, 0xE6E6E6E6); // - empresacarro
	SetPlayerMapIcon(playerid, 16,1415.8468,-1693.0602,13.5469, 32, 0xE6E6E6E6); // - empresaenergia
	SetPlayerMapIcon(playerid, 17,1928.8269,-1776.4055,13.5469, 32, 0xE6E6E6E6); // - empresagasulina
	SetPlayerMapIcon(playerid, 18,1775.4338,-1706.3094,13.5234, 32, 0xE6E6E6E6); // - empresadeanuncio
	SetPlayerMapIcon(playerid, 19,1310.1265,-1367.8122,13.5408, 32, 0xE6E6E6E6); // - paintball
	SetPlayerMapIcon(playerid, 20,2350.0000,-1411.8000,23.9923, 32, 0xE6E6E6E6); // - UpCasa
	SetPlayerMapIcon(playerid, 21,1205.9715,-1459.6737,13.3859, 32, 0xE6E6E6E6); // - ArmasdosCopa
	SetPlayerMapIcon(playerid, 22,1182.7567,-1242.9381,17.4995, 31, 0xE6E6E6E6); // - condominio3-
	SetPlayerMapIcon(playerid, 23,294.0238,-1602.5834,32.8331, 32, 0xE6E6E6E6); // - BrasilTelecon =)
	SetPlayerMapIcon(playerid, 24,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 25,1373.4950,405.3371,19.9555, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 26,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
	SetPlayerMapIcon(playerid, 27,1027.9030,-355.8242,73.9548, 30 , 0xE6E6E6E6);//HQ ALFANDEGA
    SetPlayerMapIcon(playerid, 28,2023.7308,-1424.4435,16.3137, 22 , 0xE6E6E6E6);//HQ Medico
	SetPlayerMapIcon(playerid, 30,1655.3055,-1341.8470,17.4294, 23 , 0xE6E6E6E6);//HQ Prefeito
    SetPlayerMapIcon(playerid, 31,-329.6229,1535.2339,75.5625, 12 , 0xE6E6E6E6);//HQ Heroes
    SetPlayerMapIcon(playerid, 32,1011.9985,-1445.8608,13.5546, 13 , 0xE6E6E6E6);//HQ CV
    SetPlayerMapIcon(playerid, 33,-1956.6346,293.0974,35.4688, 55, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 34,-2650.0022,375.9881,6.1563, 30, 0xE6E6E6E6);//dp pm
	SetPlayerMapIcon(playerid, 35,-1666.3496,1364.9711,6.8285, 40, 0xE6E6E6E6);//TT
	SetPlayerMapIcon(playerid, 36,-2462.9438,791.9480,34.8774, 62, 0xE6E6E6E6);//grove
	SetPlayerMapIcon(playerid, 37,-2463.5513,131.8371,35.1719, 58, 0xE6E6E6E6);//aztec
	SetPlayerMapIcon(playerid, 38,-1885.0505,-201.5969,15.4974, 59, 0xE6E6E6E6);//ballas
	SetPlayerMapIcon(playerid, 39,-2765.2856,375.6439,6.3359, 44, 0xE6E6E6E6);//Prefeitura
	SetPlayerMapIcon(playerid, 40,-1694.3472,951.0661,24.8906, 45, 0xE6E6E6E6);//Binco
	SetPlayerMapIcon(playerid, 41,-1754.1906,963.2577,24.8828, 52, 0xE6E6E6E6);//Banco
	SetPlayerMapIcon(playerid, 42,-1605.5298,712.7885,13.8477, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 43,-2236.9390,2354.2004,4.9799, 30, 0xE6E6E6E6);
	SetPlayerMapIcon(playerid, 44,-2442.4121,531.5734,29.9192, 30 ,0xE6E6E6E6);//Heroes
	SetPlayerMapIcon(playerid, 45,-2668.8523,610.5510,14.4545, 22 , 0xE6E6E6E6);//HQ Medico SF
	SetPlayerMapIcon(playerid, 46, 952.5583,-909.3518,45.7656,36,0);//autoescola
	/*GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZBoca2, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZQuadra, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZBoca3, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZBoca1, 0xC0C0C0AA);
	GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);*/
	
	if(donoestacao == 0)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
    }
    if(donoestacao == 1)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
    }
    if(donoestacao == 2)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
    }
    if(donoestacao == 3)
	{
    GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_ALFANDEGA);
    }
    if(donocasarao == 0)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
    }
    if(donocasarao == 1)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
    }
    if(donocasarao == 2)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
    }
    if(donocasarao == 3)
    {
    GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_ALFANDEGA);
    }
	if(donofavela == 0)
	{
	GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
	}
	if(donofavela == 1)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_GROVE_COLOR);
	}
	if(donofavela == 2)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_BALLAS_COLOR);
	}
	if(donofavela == 3)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_VAGOS_COLOR);
	}
	if(donofavela == 4)
	{
	GangZoneShowForPlayer(playerid, GZFavela, TEAM_AZTECAS_COLOR);
	}
	if(donofavela == 5)
	{
	GangZoneShowForPlayer(playerid, GZFavela, COLOR_ROTAM);
	}
	if(donofavela == 6)
	{
	GangZoneShowForPlayer(playerid, GZFavela, GCOP_COLOR);
	}
	if(donofavela == 7)
	{
	GangZoneShowForPlayer(playerid, GZFavela, GMOB);
	}
	if(donoindustria == 0)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, 0xC0C0C0AA);
	}
	if(donoindustria == 1)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_GROVE_COLOR);
	}
	if(donoindustria == 2)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_BALLAS_COLOR);
	}
	if(donoindustria == 3)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_VAGOS_COLOR);
	}
	if(donoindustria == 4)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, TEAM_AZTECAS_COLOR);
	}
	if(donoindustria == 5)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, COLOR_ROTAM);
	}
	if(donoindustria == 6)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, GCOP_COLOR);
	}
	if(donoindustria == 7)
	{
	GangZoneShowForPlayer(playerid, GZIndustria, GMOB);
	}
	if(donoriacho == 0)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, 0xC0C0C0AA);
	}
	if(donoriacho == 1)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_GROVE_COLOR);
	}
	if(donoriacho == 2)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_BALLAS_COLOR);
	}
	if(donoriacho == 3)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_VAGOS_COLOR);
	}
	if(donoriacho == 4)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, TEAM_AZTECAS_COLOR);
	}
	if(donoriacho == 5)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, COLOR_ROTAM);
	}
	if(donoriacho == 6)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, GCOP_COLOR);
	}
	if(donoriacho == 7)
	{
	GangZoneShowForPlayer(playerid, GZRiacho, GMOB);
	}
	if(donoBoca1 == 0)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, 0xC0C0C0AA);
	}
	if(donoBoca1 == 1)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_GROVE_COLOR);
	}
	if(donoBoca1 == 2)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_BALLAS_COLOR);
	}
	if(donoBoca1 == 3)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_VAGOS_COLOR);
	}
	if(donoBoca1 == 4)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, TEAM_AZTECAS_COLOR);
	}
	if(donoBoca1 == 5)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, COLOR_ROTAM);
	}
	if(donoBoca1 == 6)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, GCOP_COLOR);
	}
	if(donoBoca1 == 7)
	{
	GangZoneShowForPlayer(playerid, GZBoca1, GMOB);
	}
	
	if(donopark == 0)
	{
	GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
	}
	if(donopark == 1)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_GROVE_COLOR);
	}
	if(donopark == 2)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_BALLAS_COLOR);
	}
	if(donopark == 3)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
	}
	if(donopark == 4)
	{
	GangZoneShowForPlayer(playerid, GZPark, TEAM_AZTECAS_COLOR);
	}
	if(donopark == 5)
	{
	GangZoneShowForPlayer(playerid, GZPark, COLOR_ROTAM);
	}
	if(donopark == 6)
	{
	GangZoneShowForPlayer(playerid, GZPark, GCOP_COLOR);
	}
	if(donopark == 7)
	{
	GangZoneShowForPlayer(playerid, GZPark, GMOB);
	}

	if(donoquadra == 0)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, 0xC0C0C0AA);
	}
	if(donoquadra == 1)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_GROVE_COLOR);
	}
	if(donoquadra == 2)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_BALLAS_COLOR);
	}
	if(donoquadra == 3)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_VAGOS_COLOR);
	}
	if(donoquadra == 4)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, TEAM_AZTECAS_COLOR);
	}
	if(donoquadra == 5)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, COLOR_ROTAM);
	}
	if(donoquadra == 6)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, GCOP_COLOR);
	}
	if(donoquadra == 7)
	{
	GangZoneShowForPlayer(playerid, GZQuadra, GMOB);
	}

	if(donoBoca2 == 0)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, 0xC0C0C0AA);
	}
	if(donoBoca2 == 1)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_GROVE_COLOR);
	}
	if(donoBoca2 == 2)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_BALLAS_COLOR);
	}
	if(donoBoca2 == 3)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_VAGOS_COLOR);
	}
	if(donoBoca2 == 4)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, TEAM_AZTECAS_COLOR);
	}
	if(donoBoca2 == 5)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, COLOR_ROTAM);
	}
	if(donoBoca2 == 6)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, GCOP_COLOR);
	}
	if(donoBoca2 == 7)
	{
	GangZoneShowForPlayer(playerid, GZBoca2, GMOB);
	}

	if(donoBoca3 == 0)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, 0xC0C0C0AA);
	}
	if(donoBoca3 == 1)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_GROVE_COLOR);
	}
	if(donoBoca3 == 2)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_BALLAS_COLOR);
	}
	if(donoBoca3 == 3)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_VAGOS_COLOR);
	}
	if(donoBoca3 == 4)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, TEAM_AZTECAS_COLOR);
	}
	if(donoBoca3 == 5)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, COLOR_ROTAM);
	}
	if(donoBoca3 == 6)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, GCOP_COLOR);
	}
	if(donoBoca3 == 7)
	{
	GangZoneShowForPlayer(playerid, GZBoca3, GMOB);
	}
	
	//========== SAN FIERRO - GZs - INICIO =======//
	if(donoFonteSF == 0){GangZoneShowForPlayer(playerid, GZFonteSF, 0xC0C0C0AA);}
	if(donoFonteSF == 1){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_GROVE_COLOR);}
	if(donoFonteSF == 2){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_BALLAS_COLOR);}
	if(donoFonteSF == 3){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_VAGOS_COLOR);}
	if(donoFonteSF == 4){GangZoneShowForPlayer(playerid, GZFonteSF, TEAM_AZTECAS_COLOR);}
	if(donoFonteSF == 5){GangZoneShowForPlayer(playerid, GZFonteSF, COLOR_ROTAM);}
	if(donoFonteSF == 6){GangZoneShowForPlayer(playerid, GZFonteSF, GCOP_COLOR);}
	if(donoFonteSF == 7){GangZoneShowForPlayer(playerid, GZFonteSF, GMOB);}
	if(donoShoppingSF == 0){GangZoneShowForPlayer(playerid, GZShoppingSF, 0xC0C0C0AA);}
	if(donoShoppingSF == 1){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_GROVE_COLOR);}
	if(donoShoppingSF == 2){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_BALLAS_COLOR);}
	if(donoShoppingSF == 3){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_VAGOS_COLOR);}
	if(donoShoppingSF == 4){GangZoneShowForPlayer(playerid, GZShoppingSF, TEAM_AZTECAS_COLOR);}
	if(donoShoppingSF == 5){GangZoneShowForPlayer(playerid, GZShoppingSF, COLOR_ROTAM);}
	if(donoShoppingSF == 6){GangZoneShowForPlayer(playerid, GZShoppingSF, GCOP_COLOR);}
	if(donoShoppingSF == 7){GangZoneShowForPlayer(playerid, GZShoppingSF, GMOB);}
	if(donoConstrucaoSF == 0){GangZoneShowForPlayer(playerid, GZConstrucaoSF, 0xC0C0C0AA);}
	if(donoConstrucaoSF == 1){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_GROVE_COLOR);}
	if(donoConstrucaoSF == 2){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_BALLAS_COLOR);}
	if(donoConstrucaoSF == 3){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_VAGOS_COLOR);}
	if(donoConstrucaoSF == 4){GangZoneShowForPlayer(playerid, GZConstrucaoSF, TEAM_AZTECAS_COLOR);}
	if(donoConstrucaoSF == 5){GangZoneShowForPlayer(playerid, GZConstrucaoSF, COLOR_ROTAM);}
	if(donoConstrucaoSF == 6){GangZoneShowForPlayer(playerid, GZConstrucaoSF, GCOP_COLOR);}
	if(donoConstrucaoSF == 7){GangZoneShowForPlayer(playerid, GZConstrucaoSF, GMOB);}
	if(donoAeroSF == 0){GangZoneShowForPlayer(playerid, GZAeroSF, 0xC0C0C0AA);}
	if(donoAeroSF == 1){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_GROVE_COLOR);}
	if(donoAeroSF == 2){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_BALLAS_COLOR);}
	if(donoAeroSF == 3){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_VAGOS_COLOR);}
	if(donoAeroSF == 4){GangZoneShowForPlayer(playerid, GZAeroSF, TEAM_AZTECAS_COLOR);}
	if(donoAeroSF == 5){GangZoneShowForPlayer(playerid, GZAeroSF, COLOR_ROTAM);}
	if(donoAeroSF == 6){GangZoneShowForPlayer(playerid, GZAeroSF, GCOP_COLOR);}
	if(donoAeroSF == 7){GangZoneShowForPlayer(playerid, GZAeroSF, GMOB);}
	if(donoPraiaSF == 0){GangZoneShowForPlayer(playerid, GZPraiaSF, 0xC0C0C0AA);}
	if(donoPraiaSF == 1){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_GROVE_COLOR);}
	if(donoPraiaSF == 2){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_BALLAS_COLOR);}
	if(donoPraiaSF == 3){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_VAGOS_COLOR);}
	if(donoPraiaSF == 4){GangZoneShowForPlayer(playerid, GZPraiaSF, TEAM_AZTECAS_COLOR);}
	if(donoPraiaSF == 5){GangZoneShowForPlayer(playerid, GZPraiaSF, COLOR_ROTAM);}
	if(donoPraiaSF == 6){GangZoneShowForPlayer(playerid, GZPraiaSF, GCOP_COLOR);}
	if(donoPraiaSF == 7){GangZoneShowForPlayer(playerid, GZPraiaSF, GMOB);}
    //========== SAN FIERRO - GZs - FIM =======//

	ClearChatbox(playerid, 100);
	if(fexist(string))
	{
	    //ClearChatbox(playerid, 8);
		gPlayerConta[playerid] = 1;
		/*SendClientMessage(playerid, COLOR_MSG, "[RHB]]: Este Nick й Cadastrado, Por Favor Se Logue");
		SendClientMessage(playerid, COLOR_MSG, "[RHB]]: Vocк pode, agora, Digita: /logar [senha]");
		//SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: Sonic_FreeStyle ) <==-");
		return 1;*/
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{FFFF00}Login RHB", "{33CCFF}******************************************\n{33FF00}Bem Vindo ao [RHB] Rpg Heroes Brasil [RPG v1.0] \n{33FF00}Sua conta foi Registrada! \n\n{33FF00}Por favor logue na sua conta!!\n{33CCFF}******************************************", "Logar", "Sair");
		//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	}
	else
	{
	    //ClearChatbox(playerid, 8);
		gPlayerConta[playerid] = 0;
		/*SendClientMessage(playerid,COLOR_MSG,"Voce nгo tem uma conta! digite /registrar [Senha]");
		SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: Sonic_FreeStyle ) <==-");
		return 1;*/

ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{FFFF00}Registrar RHB", "{33CCFF}******************************************\n{33FF00}Bem Vindo ao [RHB] Rpg Heroes Brasil [RPG v1.0] \n{33FF00}Sua conta nao esta registrada! \n\n{33FF00}Por favor, registre-se!!\n{33CCFF}******************************************", "Registrar", "Sair");
		//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	}
	return 1;
}
2° On player register
Код:
public OnPlayerRegister(playerid, password[])
{
	if(IsPlayerConnected(playerid))
	{
			new string3[32];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "Contas/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
			    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
			    new var[32];
				format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				PlayerInfo[playerid][pCash] = GetPlayerMoneyEx(playerid);
				format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
				format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
				format(var, 32, "SocioLevel=%d\n",PlayerInfo[playerid][pSocio]);fwrite(hFile, var);
				format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
				format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
				format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
				format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
				format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
				format(var, 32, "Familia=%d\n",PlayerInfo[playerid][pFamily]);fwrite(hFile, var);
				format(var, 32, "origin=%d\n",PlayerInfo[playerid][pOrigem]);fwrite(hFile, var);
				format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
				format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
				format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
				format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pConta]);fwrite(hFile, var);
				format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
				format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
				format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
				format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
				format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
				format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
				format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
				format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
				format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
				format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
				format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
				format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
				format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
				format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
				format(var, 32, "Materiais=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
				format(var, 32, "Maconha=%d\n",PlayerInfo[playerid][pDrogas]);fwrite(hFile, var);
				format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pDrogas2]);fwrite(hFile, var);
				format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pDrogas3]);fwrite(hFile, var);
				format(var, 32, "Balinhas=%d\n",PlayerInfo[playerid][pBalinha]);fwrite(hFile, var);
				format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
				format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
				format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
				format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
				format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
				format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
				format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
				format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
				format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
				format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
				format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
				format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
				format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
				format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
				format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
				format(var, 32, "BalinhaSkill=%d\n",PlayerInfo[playerid][pBalinhaSkill]);fwrite(hFile, var);
				format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
				format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
				format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
	            GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
				format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
				format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
				format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
				format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
				format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
				format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
				format(var, 32, "House=%d\n",PlayerInfo[playerid][pPHousekey]);fwrite(hFile, var);
				format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
				format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
				format(var, 32, "Ban=%d\n",PlayerInfo[playerid][pBan]);fwrite(hFile, var);
				format(var, 32, "SafeMaconha=%d\n",PlayerInfo[playerid][pSafeDrogas]);fwrite(hFile, var);
				format(var, 32, "SafeCocaina=%d\n",PlayerInfo[playerid][pSafeDrogas2]);fwrite(hFile, var);
				format(var, 32, "SafeCrack=%d\n",PlayerInfo[playerid][pSafeDrogas3]);fwrite(hFile, var);
				if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
				{
					PlayerInfo[playerid][pPos_x] = 1684.9;
					PlayerInfo[playerid][pPos_y] = -2244.5;
					PlayerInfo[playerid][pPos_z] = 13.5;
				}
				if(Spectate[playerid] != 255)
				{
					PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
					PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
					PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
					PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
					PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
				}
				format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
				format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
				format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
				format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
				format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
				format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
				format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
				format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
				format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
				format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
				format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
				format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
				format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
				format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
				format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
				format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
				format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
				format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
				format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
				format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
				format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
				format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
				format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
				format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
				format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
				format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
				format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
				format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
				format(var, 32, "Avisos=%d\n",PlayerInfo[playerid][pwarns]);fwrite(hFile, var);
				format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
				format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
				format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
				format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
				format(var, 32, "PontosCadeia=%d\n",PlayerInfo[playerid][pProcurado1]);fwrite(hFile, var);
				format(var, 32, "NivelProcurado=%d\n",PlayerInfo[playerid][pProcurado2]);fwrite(hFile, var);
				format(var, 32, "SafeMateriais=%d\n",PlayerInfo[playerid][psMats]);fwrite(hFile, var);
				format(var, 32, "Galao1=%d\n",PlayerInfo[playerid][pGalao1]);fwrite(hFile, var);
				format(var, 32, "Galao2=%d\n",PlayerInfo[playerid][pGalao2]);fwrite(hFile, var);
				format(var, 32, "Galao3=%d\n",PlayerInfo[playerid][pGalao3]);fwrite(hFile, var);
				format(var, 32, "DataLogin=%s\n",PlayerInfo[playerid][pLastLogin]);fwrite(hFile, var);
				format(var, 32, "PremmyExpire=%s\n",PlayerInfo[playerid][pPremmyExpire]);fwrite(hFile, var);
				format(var, 32, "AdminName=%s\n",PlayerInfo[playerid][pAdminName]);fwrite(hFile, var);
				format(var, 32, "Motivo=%s\n",PlayerInfo[playerid][pMotivo]);fwrite(hFile, var);
				format(var, 32, "Estagiario=%d\n",PlayerInfo[playerid][pEstagiario]);fwrite(hFile, var);
				format(var, 32, "Voto=%d\n",PlayerInfo[playerid][pVoto]);fwrite(hFile, var);
				format(var, 32, "Caixinha=%d\n",PlayerInfo[playerid][pCaixinha]);fwrite(hFile, var);
				format(var, 32, "Ajustado=%d\n",PlayerInfo[playerid][pAjustado]);fwrite(hFile, var);
				format(var, 32, "Pagamento=%d\n",PlayerInfo[playerid][pRecebeuSalario]);fwrite(hFile, var);
				fclose(hFile);
				TotalRegistro++;
			    SalvarNumeroRegistrados();
			    SendClientMessage(playerid, 0x00F6F6AA, "[RHB]] Conta registrada digite : (/logar [Senha]).");
			}
	}
	return 1;
}
3°ZCMD

se eu demorar a responder й por causa disso aki:
This forum requires that you wait 120 seconds between posts. Please try again in 106 seconds.
Reply
#6

nгo nгo mano eu n quero coloca o veiculo do policial no id eu quero criar carros exemplo o ultimo id acho q й 505 ai eu queria criar o cmd do veiculo pra cria tipo uma corrida ai seria veiculo id 506 507 etc e quando eu excluir ele exclui com o id 506 507

etc

meu OnPlayerRequestClass й:
Код:
public OnPlayerRequestClass(playerid, classid)
{
 	new string[128];
 	new plname[MAX_PLAYER_NAME];
	PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];
	if(IsPlayerNPC(playerid)) SpawnPlayer(playerid);
	//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
    if(gPlayerLogged[playerid] == 0)
	{
	    GetPlayerName(playerid, plname, sizeof(plname));
		format(string, sizeof(string), "Contas/%s.ini", plname);
        if(fexist(string))
		{
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{FFFF00}Login RHB", "{33CCFF}******************************************\n{33FF00}Bem Vindo ao [RHB] Rpg Heroes Brasil [RPG v1.0] \n{33FF00}Sua conta foi Registrada! \n\n{33FF00}Por favor logue na sua conta!!\n{33CCFF}******************************************", "Logar", "Sair");
		//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
		}
		else
		{

ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{FFFF00}Registrar RHB", "{33CCFF}******************************************\n{33FF00}Bem Vindo ao [RHB] Rpg Heroes Brasil [RPG v1.0] \n{33FF00}Sua conta nao esta registrada! \n\n{33FF00}Por favor, registre-se!!\n{33CCFF}******************************************", "Registrar", "Sair");
		//TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
		}
		return 1;
 	}
 	if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
	{
		ClearChatbox(playerid, 10);
		format(string, sizeof(string), "Bem vindo ao %s", SCRIPT_VERSION);
		SendClientMessage(playerid, COLOR_YELLOW, string);
		SendClientMessage(playerid, COLOR_YELLOW2, " ");
		if (gPlayerConta[playerid] != 0)
		{
		    GameTextForPlayer(playerid, "~y~ USE: ~n~ ~y~ /logar [senha]", 5000, 1);
			SendClientMessage(playerid, COLOR_YELLOW2, "USE: /logar [SENHA] - para acessar a sua conta.");
			SendClientMessage(playerid, COLOR_LIGHTRED, "Caso erre ela 3 vezes, serб banido :C !");
		}
		else
		{
		    GameTextForPlayer(playerid, "~y~ USE: ~n~ ~y~ /registrar [senha]", 5000, 1);
			SendClientMessage(playerid, COLOR_YELLOW2, "Esta conta nгo estб registrada em nosso banco de dados.");
			SendClientMessage(playerid, COLOR_WHITE, "USE: /registrar [SENHA] - Para cadastrar sua conta em nosso server");
		}
        SetPlayerInterior(playerid, 0);
	    SetPlayerPos(playerid, 1241.8787,-1693.4835,16.1940);
	    SetPlayerFacingAngle(playerid, 183.6818);
	    //TextDrawShowForPlayer(playerid, RHBText);//Mostrar RHB Text Draw Sonic_FreeStyle & Shadow_FreeStyle
	    SetPlayerCameraPos(playerid, 1241.8787,-1693.4835,16.1940);
	    SetPlayerCameraLookAt(playerid, 1243.1785,-1729.0465,13.5781);
		PlayerInfo[playerid][pModel] = Peds[classid][0];
		SetPlayerTeamFromClass(playerid,classid);
	}
	else SpawnPlayer(playerid);
	return false;
	//SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
 	/*if (classid == 1)
	{
			format(string, sizeof(string), "~y~> ~p~Comandante ~y~< ~n~Policia Militar!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 2)
	{
			format(string, sizeof(string), "~y~> ~p~Capitao ~y~< ~n~ROTAM!");
			GameTextForPlayer(playerid,string,3500,6);
   			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	//else if (classid == 3)
	//{
	//		format(string, sizeof(string), "~y~> ~p~Policia ~y~< ~n~Secreta!");
	//		GameTextForPlayer(playerid,string,3500,6);
	//		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	//}
	else if (classid == 3)
	{
			format(string, sizeof(string), "~y~> ~p~Medico ~y~< ~n~Medico!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 4)
	{
			format(string, sizeof(string), "~y~> ~p~Varrios Los Aztecas Lider ~y~< ~n~Liders only!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 5)
	{
			format(string, sizeof(string), "~y~> ~p~Chefao ~y~< ~n~Guerrilheiros israelitas!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 6)
	{
			format(string, sizeof(string), "~y~> ~p~Presidente ~y~< ~n~San Andreas!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 7)
	{
			format(string, sizeof(string), "~y~> ~p~Chefao ~y~< ~n~Assassinos!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 8)
	{
			format(string, sizeof(string), "~y~> ~p~Diretor ~y~< ~n~San News!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 9)
	{
			format(string, sizeof(string), "~y~> ~p~Lider ~y~< ~n~Taxistas!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 10)
	{
			format(string, sizeof(string), "~y~> ~p~License Faction Lider ~y~< ~n~Liders only!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 11)
	{
			format(string, sizeof(string), "~y~> ~p~Grove Street ~y~< ~n~Chefao!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 12)
	{
			format(string, sizeof(string), "~y~> ~p~Lider ~y~< ~n~FARC!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 13)
	{
			format(string, sizeof(string), "~y~> ~p~Delegado ~y~< ~n~Policia Civil!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 14)
	{
			format(string, sizeof(string), "~y~> ~p~Chefao ~y~< ~n~Ballas!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 15)
	{
   format(string, sizeof(string), "~y~> ~p~Chefao ~y~< ~n~Los Vagos!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else if (classid == 16)
	{
			format(string, sizeof(string), "~y~> ~p~Chefao ~y~< ~n~Yakuza!");
			GameTextForPlayer(playerid,string,3500,6);
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	else
	{
		format(string, sizeof(string), "~y~> ~g~Civilizacao ~y~<");
		GameTextForPlayer(playerid,string,3500,6);
		SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
	}
	SetPlayerTeamFromClass(playerid,classid);
	SetupPlayerForClassSelection(playerid);
	return 1;*/
}
Reply
#7

Hum tendeu entгo faz:
PHP код:
new vehevento 505;
new 
veheventoID[MAX_VEHICLES];
ai no comando de criar os veнculos faz:
veheventoID[vehevento] = CreateVehicle(....
vehevento ++; 
coloque seus cуdigos entre [pawn*] Cуdigo [/pawn*] ou [php*] Cуdigo [/php*] sem os asteriscos.

Obs da um Ctrl + F e coloque na dialog que vai aparecer ( Este Nick Jб existe, tente outro. ) que irб atй essa linha copie essa parte do erro pra mim todinha e post aqui . . . isso й em OnDialogResponse..
Reply
#8

Olб amigo,obrigado pela ajuda sу que eu nгo sei fazer cуdigos muito bem poderia me passar o cуdigo completo? se nгo for abusar de sua boa vontade
Reply
#9

Quote:
Originally Posted by Sonic Hero
Посмотреть сообщение
Olб amigo,obrigado pela ajuda sу que eu nгo sei fazer cуdigos muito bem poderia me passar o cуdigo completo? se nгo for abusar de sua boa vontade
Edit:

Ta ae manolo:

pawn Код:
#include <a_samp>

new
    vehevento[MAX_VEHICLES], veheventoID = 505;
   
public OnFilterScriptInit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new
        cmd[128], idx, tmp[128];

    cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/vehevento", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "Uso correto: /vehevento [cor1] [cor2]");
            return 1;
        }
        new veiculo = strval(tmp);
        if(veiculo < 400 || veiculo > 611)
        {
            SendClientMessage(playerid, -1, "Somente veнculos entre os ID: 400 б 611");
            return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "Uso: /vehevento [cor1] [cor2]");
            return 1;
        }
        new color1 = strval(tmp);
        tmp = strtok(cmdtext, idx);
        new color2 = strval(tmp);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "Uso: /vehevento [id veнculo] [cor1] [cor2]");
            return 1;
        }
        new Float:EVX, Float:EVY, Float:EVZ, Float:EVA;
        GetPlayerPos(playerid, EVX, EVY, EVZ);
        GetPlayerFacingAngle(playerid, EVA);
        new currentveh;
        new Float:z_rot;
        currentveh = GetPlayerVehicleID(playerid);
        GetVehicleZAngle(currentveh, z_rot);
        if(IsPlayerInAnyVehicle(playerid))
        {
            DestroyVehicle(GetPlayerVehicleID(playerid));
            PutPlayerInVehicle(playerid, vehevento[veheventoID] = CreateVehicle( veiculo, EVX, EVY, EVZ, z_rot, color1, color2, -1), 0);
        }
        else
        {
            PutPlayerInVehicle(playerid, vehevento[veheventoID] = CreateVehicle( veiculo, EVX, EVY, EVZ, EVA, color1, color2, -1), 0);
        }
        veheventoID ++;
        return 1;
    }
    return 1;
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reply
#10

Quote:
Originally Posted by [NWD]Jim._.Carrey
Посмотреть сообщение
Edit:

Ta ae manolo:

pawn Код:
#include <a_samp>

new
    vehevento[MAX_VEHICLES], veheventoID = 505;
   
public OnFilterScriptInit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new
        cmd[128], idx, tmp[128];

    cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/vehevento", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "Uso correto: /vehevento [cor1] [cor2]");
            return 1;
        }
        new veiculo = strval(tmp);
        if(veiculo < 400 || veiculo > 611)
        {
            SendClientMessage(playerid, -1, "Somente veнculos entre os ID: 400 б 611");
            return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "Uso: /vehevento [cor1] [cor2]");
            return 1;
        }
        new color1 = strval(tmp);
        tmp = strtok(cmdtext, idx);
        new color2 = strval(tmp);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "Uso: /vehevento [id veнculo] [cor1] [cor2]");
            return 1;
        }
        new Float:EVX, Float:EVY, Float:EVZ, Float:EVA;
        GetPlayerPos(playerid, EVX, EVY, EVZ);
        GetPlayerFacingAngle(playerid, EVA);
        new currentveh;
        new Float:z_rot;
        currentveh = GetPlayerVehicleID(playerid);
        GetVehicleZAngle(currentveh, z_rot);
        if(IsPlayerInAnyVehicle(playerid))
        {
            DestroyVehicle(GetPlayerVehicleID(playerid));
            PutPlayerInVehicle(playerid, vehevento[veheventoID] = CreateVehicle( veiculo, EVX, EVY, EVZ, z_rot, color1, color2, -1), 0);
        }
        else
        {
            PutPlayerInVehicle(playerid, vehevento[veheventoID] = CreateVehicle( veiculo, EVX, EVY, EVZ, EVA, color1, color2, -1), 0);
        }
        veheventoID ++;
        return 1;
    }
    return 1;
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Amigo, acho que ali em cima ele disse "ZCMD". Entгo utilize esse code:

pawn Код:
CMD:vehevento(playerid, params[])
{
    new cmd[128], idx, tmp[128];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, -1, "Uso correto: /vehevento [cor1] [cor2]");
        return 1;
    }
    new veiculo = strval(tmp);
    if(veiculo < 400 || veiculo > 611)
    {
        SendClientMessage(playerid, -1, "Somente veнculos entre os ID: 400 б 611");
        return 1;
    }
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, -1, "Uso: /vehevento [cor1] [cor2]");
        return 1;
    }
    new color1 = strval(tmp);
    new color2 = strval(tmp);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, -1, "Uso: /vehevento [id veнculo] [cor1] [cor2]");
        return 1;
    }
    new Float:EVX, Float:EVY, Float:EVZ, Float:EVA;
    GetPlayerPos(playerid, EVX, EVY, EVZ);
    GetPlayerFacingAngle(playerid, EVA);
    new currentveh;
    new Float:z_rot;
    currentveh = GetPlayerVehicleID(playerid);
    GetVehicleZAngle(currentveh, z_rot);
    if(IsPlayerInAnyVehicle(playerid))
    {
        DestroyVehicle(GetPlayerVehicleID(playerid));
        PutPlayerInVehicle(playerid, vehevento[veheventoID] = CreateVehicle( veiculo, EVX, EVY, EVZ, z_rot, color1, color2, -1), 0);
    }
    else
    {
        PutPlayerInVehicle(playerid, vehevento[veheventoID] = CreateVehicle( veiculo, EVX, EVY, EVZ, EVA, color1, color2, -1), 0);
    }
    veheventoID ++;
    return 1;
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)