[AJUDA] Demora para parecer RequestClass!!!
#1

Olб Boa Tarde, alguйm poderia me ajudar a resolver isso.

O problema й o seguinte, nem sei se й problema, mas quando eu entro no meu servidor ae aparece uma tela para por senha DIALOG, ae eu coloco a senha e demora para aparecer na RequestClass ou seja aparecer na tela de classe dos skin. As vezes vai na hora, mas tem vezes que demora ir.

Alguйm sabe se tem algum comando para corrigir isso, logo quando eu por senha e jб ir logo para tela de selecao de skin's?

Obrigado..
Reply
#2

Posta OnPlayerConnect e OnPlayerRequestClass.
Reply
#3

Quote:
Originally Posted by Los
Посмотреть сообщение
Posta OnPlayerConnect e OnPlayerRequestClass.
Quote:
Originally Posted by Los
Посмотреть сообщение
Posta OnPlayerConnect e OnPlayerRequestClass.
Код:
public OnPlayerConnect(playerid)
{

    //ForceClassSelection(playerid); //add
    PlayerPlaySound(playerid,1057 ,0, 0, 0);
    /*//DIALOGOS
    new strdialog[5000];
    format(strdialog, sizeof(strdialog),"{FFFF00}•••• PRINCIPAIS REGRAS ••••\n\n{FFFFFF}1° -Utilizar Cheater й EXTREMAMENTE Proibido. ({FF0000}Ban{FFFFFF})\n2° -Respeite todos os Jogadores e Admins. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)\n3° -Proibido divulgar outros servidores. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n4° -Nгo abuse de Bugs. Ex: 2x2x2 Sawn. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1{FFFFFF} Kick)\n5° -Nгo faзa Drive-By, Spaws Kill, e nunca Flood mais de 3 vezes. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n6° -Proibido teclar ESC em: Бreas de Ganhar Dinheiro/Porque ta morrendo/Бreas de DM. ({FF0000}Kick{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n7° -Nгo mate ninguem dentro de interiores. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)\n8° -Proibido abusar do Hydras, Hunters e Rhino em бreas de Respawn, Eventos. Use com moderaзгo! ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n9° -Xingamentos tem tolerвncia de nнvel: [/chinivel]");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n10° -Proibido Ofender Jogadores seja por, Racismo ou algo relacionado. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Calado)\n11° -O Vip que usar trapaзas/xiter serб banido normalmente. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n                                                ** {38FF06}Promoзгo de VIP: {FF8040}Seja VIP no Mata-Mata por Somente {FF0000}R$ 5,00 {FFFFFF}Mensal **");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n                                                                         Visite: {FF0000}www.xmatamata.forumeiros.com");
	ShowPlayerDialog(playerid, DIALOG_REGRAS, DIALOG_STYLE_MSGBOX, "{38FF06}Mata-Mata™ 2012 - Guerra em Las Venturas {FF0000}®", strdialog, "Aceito", "Discordo");
    //================//
	*/
    
	new strings[15];
	format(strings, 15, "%d/100",GetOnLinePlayers());
	TextDrawSetString(playersx, strings);
	TextDrawShowForPlayer(playerid, playersx);
	
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s",name);
	for(new fdp=0;fdp<RONALDO_LOL;fdp++){
	if(strfind(string, IP[fdp], true) != -1)
	{
	new string2[128];
	new PlayerNames[30];
	GetPlayerName(playerid, PlayerNames, 30);
	format(string2, sizeof(string2), "[Admin BOT] %s foi Expulso do Servidor. [Motivo: Divulgaзгo]",PlayerNames);
	SendClientMessageToAll(0xFF0000AA, string2);
	SpawnPlayer(playerid);
	SetPlayerPos(playerid, 1,1,1);
	TimerFDP = SetTimerEx("FDP", 3000, 0, "i", playerid);
	return 0;
	}
	}
	GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~w~Ultimate ~r~Mata-Mata 2012! ~n~~n~ ~g~Guerra em ~y~Las Venturas",2500,5);
    //SendClientMessage(playerid, 0xFF0000AA, "Anti-Divulgador Estб ligado no servior nгo divulgue");
	if(dini_Isset("dinheiro.ini",PlayerName(playerid))) GivePlayerMoney(playerid,dini_Int("dinheiro.ini",PlayerName(playerid)));
	if(dini_Isset("scores.ini",PlayerName(playerid))) SetPlayerScore(playerid,dini_Int("scores.ini",PlayerName(playerid)));
    if(dini_Isset("sematou.dkn",PlayerName(playerid))) PlayerInfo[playerid][pSematou] = (playerid,dini_Int("sematou.dkn",PlayerName(playerid)));
    if(dini_Isset("morreu.dkn",PlayerName(playerid))) PlayerInfo[playerid][pMorreu] = (playerid,dini_Int("morreu.dkn",PlayerName(playerid)));
    if(dini_Isset("matou.dkn",PlayerName(playerid))) PlayerInfo[playerid][pMatou] = (playerid,dini_Int("matou.dkn",PlayerName(playerid)));
    if(dini_Isset("dominou.dkn",PlayerName(playerid))) PlayerInfo[playerid][pDominou] = (playerid,dini_Int("dominou.dkn",PlayerName(playerid)));
    if(dini_Isset("tk.dkn",PlayerName(playerid))) PlayerInfo[playerid][pTeamkill] = (playerid,dini_Int("tk.dkn",PlayerName(playerid)));
    if(dini_Isset("Ganhoux1.dkn",PlayerName(playerid))) PlayerInfo[playerid][Ganhoux1] = (playerid,dini_Int("Ganhoux1.dkn",PlayerName(playerid)));
    if(dini_Isset("Perdeux1.dkn",PlayerName(playerid))) PlayerInfo[playerid][Perdeux1] = (playerid,dini_Int("Perdeux1.dkn",PlayerName(playerid)));
    SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
    Dominat[playerid] = 0;
   	//new Float:X,Y,Z;
	//PlayerPlaySound(playerid, 1185, X, Y, Z);
	if (EmDuelo[playerid] > 0) 	VerificaDuelos(playerid, INVALID_PLAYER_ID); // X1
	if (EmGuerra[playerid] > 0) 	VerificaGuerra(playerid, INVALID_PLAYER_ID); // X1
    gPlayerLogged[playerid] = 0;
	gPlayerLogTries[playerid] = 0;
    ccolete[playerid] = 0;
    steleporte[playerid] = 1;
    granastatus[playerid] = 0;
    Matando[playerid] = 0;
    JaPegouaGrana[playerid] = 0;
    //AQUI >>> TOTAL DE GANGZONAS -1 > Exemplo: Se tiver 20 GZ's aqui tera um total de 19 GZ's por que comesa apartir do 0.
    GangZoneShowForPlayer(playerid, Policia, gzcolor[0]);
    GangZoneShowForPlayer(playerid, Exercito, gzcolor[1]);
    GangZoneShowForPlayer(playerid, BOPE, gzcolor[2]);
    GangZoneShowForPlayer(playerid, Playboys, gzcolor[3]);
    GangZoneShowForPlayer(playerid, Noias, gzcolor[4]);
    GangZoneShowForPlayer(playerid, Frangos, gzcolor[5]);
    GangZoneShowForPlayer(playerid, Agentes, gzcolor[6]);
    GangZoneShowForPlayer(playerid, Chineses, gzcolor[7]);
    GangZoneShowForPlayer(playerid, Cowboys, gzcolor[8]);
    GangZoneShowForPlayer(playerid, Bozo, gzcolor[9]);
    GangZoneShowForPlayer(playerid, Grove, gzcolor[10]);
    GangZoneShowForPlayer(playerid, Ballas, gzcolor[11]);
    GangZoneShowForPlayer(playerid, Mafiosos, gzcolor[12]);
    GangZoneShowForPlayer(playerid, Lutadores, gzcolor[13]);
    GangZoneShowForPlayer(playerid, Barbies, gzcolor[14]);
    GangZoneShowForPlayer(playerid, Motoqueiros, gzcolor[15]);
    GangZoneShowForPlayer(playerid, Pedreiros, gzcolor[16]);
    GangZoneShowForPlayer(playerid, Favelados, gzcolor[17]);
    GangZoneShowForPlayer(playerid, Drifters, gzcolor[18]);
    GangZoneShowForPlayer(playerid, Idosos, gzcolor[19]);
    GangZoneShowForPlayer(playerid, Gorduchos, gzcolor[20]);
    GangZoneShowForPlayer(playerid, Golfistas, gzcolor[21]);
    GangZoneShowForPlayer(playerid, Aztecas, gzcolor[22]);
    GangZoneShowForPlayer(playerid, Pelados, gzcolor[23]);
    GangZoneShowForPlayer(playerid, VIP, gzcolor[24]);
    //
    status[playerid] = 0;
    HealthBar[playerid] = TextDrawCreate(548.000000, 66.000000, "100");
	TextDrawBackgroundColor(HealthBar[playerid], 255);
	TextDrawFont(HealthBar[playerid], 1);
	TextDrawLetterSize(HealthBar[playerid], 0.280000, 1.000000);
	TextDrawColor(HealthBar[playerid], -1);
	TextDrawSetOutline(HealthBar[playerid], 1);
	TextDrawSetProportional(HealthBar[playerid], 1);

	ArmourBar[playerid] = TextDrawCreate(548.000000, 43.000000, "100");
	TextDrawBackgroundColor(ArmourBar[playerid], 255);
	TextDrawFont(ArmourBar[playerid], 1);
	TextDrawLetterSize(ArmourBar[playerid], 0.290000, 1.100000);
	TextDrawColor(ArmourBar[playerid], -1);
	TextDrawSetOutline(ArmourBar[playerid], 1);
	TextDrawSetProportional(ArmourBar[playerid], 1);

	VehHealthBox1[playerid] = TextDrawCreate(547.000000, 9.000000, "..........");
	TextDrawBackgroundColor(VehHealthBox1[playerid], 255);
	TextDrawFont(VehHealthBox1[playerid], 3);
	TextDrawLetterSize(VehHealthBox1[playerid], 0.599999, 3.999999);
	TextDrawColor(VehHealthBox1[playerid], 255);
	TextDrawSetOutline(VehHealthBox1[playerid], 1);
	TextDrawSetProportional(VehHealthBox1[playerid], 1);

	VehHealthBox2[playerid] = TextDrawCreate(549.000000, 22.000000, "~g~..........");
	TextDrawBackgroundColor(VehHealthBox2[playerid], 912665855);
	TextDrawFont(VehHealthBox2[playerid], 3);
	TextDrawLetterSize(VehHealthBox2[playerid], 0.560000, 2.200000);
	TextDrawColor(VehHealthBox2[playerid], -1);
	TextDrawSetOutline(VehHealthBox2[playerid], 1);
	TextDrawSetProportional(VehHealthBox2[playerid], 1);

	VehHealthBox3[playerid] = TextDrawCreate(549.000000, 22.000000, "~g~~h~.........");
	TextDrawBackgroundColor(VehHealthBox3[playerid], 1369064191);
	TextDrawFont(VehHealthBox3[playerid], 3);
	TextDrawLetterSize(VehHealthBox3[playerid], 0.560000, 2.200000);
	TextDrawColor(VehHealthBox3[playerid], -1);
	TextDrawSetOutline(VehHealthBox3[playerid], 1);
	TextDrawSetProportional(VehHealthBox3[playerid], 1);

	VehHealthBar[playerid] = TextDrawCreate(548.000000, 32.000000, "100");
	TextDrawBackgroundColor(VehHealthBar[playerid], 255);
	TextDrawFont(VehHealthBar[playerid], 1);
	TextDrawLetterSize(VehHealthBar[playerid], 0.290000, 1.100000);
	TextDrawColor(VehHealthBar[playerid], -1);
	TextDrawSetOutline(VehHealthBar[playerid], 1);
	TextDrawSetProportional(VehHealthBar[playerid], 1);
    gettime(hourtwohaha, minutetwohaha);
    SetPlayerTime(playerid,hourtwohaha,minutetwohaha);
    //
    PlayAudioStreamForPlayer(playerid, "http://dc246.4shared.com/img/89529414/59fd0cce/dlink__2Fdownload_2FuGcjr4md_3Ftsid_3D20111218-135857-dc18e161/preview.mp3?sId=dob4sXn6hkGyxzug");
	SendClientMessage(playerid, COLOR_BLACK," ");
    SendClientMessage(playerid, COLOR_BLACK," ");
	SendClientMessage(playerid, COLOR_BLACK,"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
    SendClientMessage(playerid, COLOR_ADMINCORPM, "»»»» Servidor Mata-Mata™ 2012 - Guerra em Las Venturas «««« ");
    SendClientMessage(playerid, COLOR_GOLD,"Para obter uma ajuda digite: /ajuda ");
    SendClientMessage(playerid,COLOR_CORAL,"Compre jб o seu VIP e seja Feliz, por somente R$ 5,00 Mensal");
	SendClientMessage(playerid,COLOR_LIGHTBLUE,"Para saber como ganhar dinheiro digite: /cdin ");
    SendClientMessage(playerid,Amarelo,"Domine GangZonas com sua gang, para ver os comandos de gang digite: /gcomandos");
    SendClientMessage(playerid, COLOR_BLACK,"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
   	new visitorstr[128];
	format(visitorstr, sizeof(visitorstr), "[INFO] Vocк й o Visitante Nъmero %d Desde o Momento em que Foi Ligado o Servidor!", Visitors);
	SendClientMessage(playerid, Verde, visitorstr);
	Visitors ++;
    //
	GivePlayerMoney(playerid, 1000);
	SetPlayerColor(playerid, 0xFFFFFFAA);
    
    return 1;
}
Код:
 public OnPlayerRequestClass(playerid, classid) //AQUI
{
    DisablePlayerCheckpoint(playerid); //Para nao bugar se o player estiver em cima do CheckPoint e ir pra classe seleзгo [/f4] apуs digitar /kill
    if(!classid)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Policiais ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 0;
    format(pgang[playerid],15,pgangnames[0]);
    SetPlayerColor(playerid,0xFF9900AA);
}
//
  else if(classid == 1)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Policiais ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 0;
    format(pgang[playerid],15,pgangnames[0]);
    SetPlayerColor(playerid,0xFF9900AA);
}
  else if(classid == 2)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Policiais ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 0;
    format(pgang[playerid],15,pgangnames[0]);
    SetPlayerColor(playerid,0xFF9900AA);
}
//
  else if(classid == 3)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang do Exercito ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 1;
    format(pgang[playerid],15,pgangnames[1]);
    SetPlayerColor(playerid,0x0000BBAA);
}
  else if(classid == 4)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang do B.O.P.E ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 2;
    format(pgang[playerid],15,pgangnames[2]);
    SetPlayerColor(playerid, 0x000000C5);
}
   else if(classid == 5)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos PlayBoys ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 3;
    format(pgang[playerid],15,pgangnames[3]);
   	SetPlayerColor(playerid,0xAA3333AA);
}
   else if(classid == 6)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos PlayBoys ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 3;
    format(pgang[playerid],15,pgangnames[3]);
    SetPlayerColor(playerid,0xAA3333AA);
}
 else if(classid == 7)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Noias ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 4;
    format(pgang[playerid],15,pgangnames[4]);
    SetPlayerColor(playerid,0x1E90FFAA);
}
   else if(classid == 8)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Noias ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 4;
    format(pgang[playerid],15,pgangnames[4]);
    SetPlayerColor(playerid,0x1E90FFAA);
}

else if(classid == 9)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Frangos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 5;
    format(pgang[playerid],15,pgangnames[5]);
    SetPlayerColor(playerid, 0xFF0000AA);
}
  else if(classid == 10)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Agentes ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 6;
    format(pgang[playerid],15,pgangnames[6]);
    SetPlayerColor(playerid,0x778899AA);

}
   else if(classid == 11)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Agentes ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 6;
    format(pgang[playerid],15,pgangnames[6]);
    SetPlayerColor(playerid,0x778899AA);

}
   else if(classid == 12)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Chineses ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 7;
    format(pgang[playerid],15,pgangnames[7]);
    SetPlayerColor(playerid,0xD9C16FB6);
}

   else if(classid == 13)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Chineses ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 7;
    format(pgang[playerid],15,pgangnames[7]);
    SetPlayerColor(playerid,0xD9C16FB6);
}
   else if(classid == 14)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Cowboys ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 8;
    format(pgang[playerid],15,pgangnames[8]);
    SetPlayerColor(playerid,0x00FF00B3);
}
  else if(classid == 15)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang do bozo james ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 9;
    format(pgang[playerid],15,pgangnames[9]);
    SetPlayerColor(playerid,0x00FFFF59);
}
  else if(classid == 16)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang da Grove ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x0D5800AA);
}
   else if(classid == 17)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang da Grove ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x0D5800AA);
}
   else if(classid == 18)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang da Grove ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x0D5800AA);
}
   else if(classid == 19)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang da Grove ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x0D5800AA);
}
 else if(classid == 20)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos ballas ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 11;
    format(pgang[playerid],15,pgangnames[11]);
    SetPlayerColor(playerid,0x800080AA);
}
 else if(classid == 21)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos ballas ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 11;
    format(pgang[playerid],15,pgangnames[11]);
    SetPlayerColor(playerid,0x800080AA);
}
   else if(classid == 22)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos ballas ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 11;
    format(pgang[playerid],15,pgangnames[11]);
    SetPlayerColor(playerid,0x800080AA);
}
   else if(classid == 23)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Mafiosos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 12;
    format(pgang[playerid],15,pgangnames[12]);
    SetPlayerColor(playerid,0xFFFF00AA);
}
   else if(classid == 24)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Mafiosos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 12;
    format(pgang[playerid],15,pgangnames[12]);
    SetPlayerColor(playerid,0xFFFF00AA);
}
   else if(classid == 25)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Mafiosos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 12;
    format(pgang[playerid],15,pgangnames[12]);
    SetPlayerColor(playerid,0xFFFF00AA);
}
   else if(classid == 26)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Lutadores ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 13;
    format(pgang[playerid],15,pgangnames[13]);
    SetPlayerColor(playerid,0xFF7F50AA);
}
   else if(classid == 27)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Lutadores ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 13;
    format(pgang[playerid],15,pgangnames[13]);
    SetPlayerColor(playerid,0xFF7F50AA);
}
   else if(classid == 28)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang das Barbie Girls ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 14;
    format(pgang[playerid],15,pgangnames[14]);
    SetPlayerColor(playerid,0xFF66FFAA);
}
   else if(classid == 29)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang das Barbie Girls ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 14;
    format(pgang[playerid],15,pgangnames[14]);
    SetPlayerColor(playerid,0xFF66FFAA);
}
   else if(classid == 30)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang das Barbie Girls ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 14;
    format(pgang[playerid],15,pgangnames[14]);
    SetPlayerColor(playerid,0xFF66FFAA);
}
   else if(classid == 31)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Motoqueiros ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 15;
    format(pgang[playerid],15,pgangnames[15]);
    SetPlayerColor(playerid,0x5C460591);
}
   else if(classid == 32)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Motoqueiros ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 15;
    format(pgang[playerid],15,pgangnames[15]);
    SetPlayerColor(playerid,0x5C460591);
}
   else if(classid == 33)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Pedreiros ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 16;
    format(pgang[playerid],15,pgangnames[16]);
    SetPlayerColor(playerid,0x00FF80A9);
}
   else if(classid == 34)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Favelados ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 17;
    format(pgang[playerid],15,pgangnames[17]);
    SetPlayerColor(playerid,0x5309979C);
}
   else if(classid == 35)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Favelados ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 17;
    format(pgang[playerid],15,pgangnames[17]);
    SetPlayerColor(playerid,0x5309979C);
}
   else if(classid == 36)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Favelados ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 17;
    format(pgang[playerid],15,pgangnames[17]);
    SetPlayerColor(playerid,0x5309979C);
}
   else if(classid == 37)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Favelados ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 17;
    format(pgang[playerid],15,pgangnames[17]);
    SetPlayerColor(playerid,0x5309979C);
}
   else if(classid == 38)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Drifters ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 18;
    format(pgang[playerid],15,pgangnames[18]);
    SetPlayerColor(playerid,0x80004098);
}
   else if(classid == 39)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Drifters ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 18;
    format(pgang[playerid],15,pgangnames[18]);
    SetPlayerColor(playerid,0x80004098);
}
   else if(classid == 40)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Drifters ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 18;
    format(pgang[playerid],15,pgangnames[18]);
    SetPlayerColor(playerid,0x80004098);
}
   else if(classid == 41)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Idosos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 19;
    format(pgang[playerid],15,pgangnames[19]);
    SetPlayerColor(playerid,0xCACA0038);
}
   else if(classid == 42)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Idosos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 19;
    format(pgang[playerid],15,pgangnames[19]);
    SetPlayerColor(playerid,0xCACA0038);
}
///////////////////////
   else if(classid == 43)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Gorduchos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 20;
    format(pgang[playerid],15,pgangnames[20]);
    SetPlayerColor(playerid,0x6C568BB3);
}
   else if(classid == 44)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Gorduchos ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 20;
    format(pgang[playerid],15,pgangnames[20]);
    SetPlayerColor(playerid,0x6C568BB3);
}
   else if(classid == 45)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Golfistas ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 21;
    format(pgang[playerid],15,pgangnames[21]);
    SetPlayerColor(playerid,0xB6FC69B3);
}
   else if(classid == 46)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Aztecas ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 22;
    format(pgang[playerid],15,pgangnames[22]);
    SetPlayerColor(playerid,0x004040B3);
}
   else if(classid == 47)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Aztecas ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 22;
    format(pgang[playerid],15,pgangnames[22]);
    SetPlayerColor(playerid,0x004040B3);
}
   else if(classid == 48)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Pelados ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 23;
    format(pgang[playerid],15,pgangnames[23]);
    SetPlayerColor(playerid,0x219298B3);
}
   else if(classid == 49)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos Pelados ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 23;
    format(pgang[playerid],15,pgangnames[23]);
    SetPlayerColor(playerid,0x219298B3);
}
   else if(classid == 50)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos VIP ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 24;
    format(pgang[playerid],15,pgangnames[24]);
    SetPlayerColor(playerid,0x00FFFFAA);
}
   else if(classid == 51)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos VIP ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 24;
    format(pgang[playerid],15,pgangnames[24]);
    SetPlayerColor(playerid,0x00FFFFAA);
}
   else if(classid == 52)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos VIP ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 24;
    format(pgang[playerid],15,pgangnames[24]);
    SetPlayerColor(playerid,0x00FFFFAA);
}
   else if(classid == 53)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos VIP ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 24;
    format(pgang[playerid],15,pgangnames[24]);
    SetPlayerColor(playerid,0x00FFFFAA);
}
   else if(classid == 54)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos VIP ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 24;
    format(pgang[playerid],15,pgangnames[24]);
    SetPlayerColor(playerid,0x00FFFFAA);
}
   else if(classid == 55)
{
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~r~] ~y~Gang dos VIP ~r~]",50000,3);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    gangteam[playerid] = 24;
    format(pgang[playerid],15,pgangnames[24]);
    SetPlayerColor(playerid,0x00FFFFAA);
}

/*    if(classid == 10)
{
    GameTextForPlayer(playerid,"~n~~r~Gang VIP ~n~So para Players Vips",2000,3);
    SetPlayerPos(playerid, 2013.164184, -1199.702026, 20.023437);
    SetPlayerCameraPos(playerid, 2020.164184, -1199.702026, 20.023437);
    SetPlayerCameraLookAt(playerid, 2013.164184, -1199.702026, 20.023437);
    SetPlayerColor(playerid, 0x00000000);
    pgang[playerid]= VipsGang3;
}*/
	if(-6 != classid)
	{
		/*///SetPlayerInterior(playerid, 0);
        SetPlayerWeather(playerid,16); //Chuva
	    SetPlayerTime(playerid,12,00); // Hora
		SetPlayerInterior(playerid, 0); //Interior
		SetPlayerVirtualWorld(playerid, 1); //Mundo
		SetPlayerPos(playerid, 1958.0532,1512.0958,12.9470);
		SetPlayerCameraPos(playerid, 1965.633, 1514.095, 13.251);
		SetPlayerCameraLookAt(playerid, 1960.198, 1512.778, 12.910);
		SetPlayerFacingAngle(playerid, 1000.0);
		ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);*/
		
		SetPlayerInterior(playerid, 0);
		SetPlayerInterior(playerid, 17);
		SetPlayerPos(playerid, 489.4576, -15.1996, 1000.6796);
		SetPlayerCameraPos(playerid, 484.9201, -11.7566, 1000.6796);
		SetPlayerCameraLookAt(playerid, 489.4576, -15.1996, 1000.6796);
		SetPlayerFacingAngle(playerid, 51.5555);
		ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
	}

return 1;
}
Ta ai amigo..
Reply
#4

Tб explicado.
Reply
#5

Quote:
Originally Posted by Stewie`
Посмотреть сообщение
Tб explicado.
Nossa cara, e que explicaзгo!

pawn Код:
new strdialog[5000];
    format(strdialog, sizeof(strdialog),"{FFFF00}•••• PRINCIPAIS REGRAS ••••\n\n{FFFFFF}1° -Utilizar Cheater й EXTREMAMENTE Proibido. ({FF0000}Ban{FFFFFF})\n2° -Respeite todos os Jogadores e Admins. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)\n3° -Proibido divulgar outros servidores. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n4° -Nгo abuse de Bugs. Ex: 2x2x2 Sawn. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1{FFFFFF} Kick)\n5° -Nгo faзa Drive-By, Spaws Kill, e nunca Flood mais de 3 vezes. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n6° -Proibido teclar ESC em: Бreas de Ganhar Dinheiro/Porque ta morrendo/Бreas de DM. ({FF0000}Kick{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n7° -Nгo mate ninguem dentro de interiores. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)\n8° -Proibido abusar do Hydras, Hunters e Rhino em бreas de Respawn, Eventos. Use com moderaзгo! ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n9° -Xingamentos tem tolerвncia de nнvel: [/chinivel]");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n10° -Proibido Ofender Jogadores seja por, Racismo ou algo relacionado. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Calado)\n11° -O Vip que usar trapaзas/xiter serб banido normalmente. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n                                                ** {38FF06}Promoзгo de VIP: {FF8040}Seja VIP no Mata-Mata por Somente {FF0000}R$ 5,00 {FFFFFF}Mensal **");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n
O.O
Reply
#6

Quote:
Originally Posted by Los
Посмотреть сообщение
Nossa cara, e que explicaзгo!

pawn Код:
new strdialog[5000];
    format(strdialog, sizeof(strdialog),"{FFFF00}•••• PRINCIPAIS REGRAS ••••\n\n{FFFFFF}1° -Utilizar Cheater й EXTREMAMENTE Proibido. ({FF0000}Ban{FFFFFF})\n2° -Respeite todos os Jogadores e Admins. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)\n3° -Proibido divulgar outros servidores. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n4° -Nгo abuse de Bugs. Ex: 2x2x2 Sawn. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1{FFFFFF} Kick)\n5° -Nгo faзa Drive-By, Spaws Kill, e nunca Flood mais de 3 vezes. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n6° -Proibido teclar ESC em: Бreas de Ganhar Dinheiro/Porque ta morrendo/Бreas de DM. ({FF0000}Kick{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n7° -Nгo mate ninguem dentro de interiores. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)\n8° -Proibido abusar do Hydras, Hunters e Rhino em бreas de Respawn, Eventos. Use com moderaзгo! ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n9° -Xingamentos tem tolerвncia de nнvel: [/chinivel]");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n10° -Proibido Ofender Jogadores seja por, Racismo ou algo relacionado. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Calado)\n11° -O Vip que usar trapaзas/xiter serб banido normalmente. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n                                                ** {38FF06}Promoзгo de VIP: {FF8040}Seja VIP no Mata-Mata por Somente {FF0000}R$ 5,00 {FFFFFF}Mensal **");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n
O.O
Olб amigos, eu nгo intedi o tб explicado?

Se vocкis nгo viram ele comando estб desabilitado, ou seja ele pesa mesmo assim desabilidado?
pawn Код:
/*//DIALOGOS
    new strdialog[5000];
    format(strdialog, sizeof(strdialog),"{FFFF00}•••• PRINCIPAIS REGRAS ••••\n\n{FFFFFF}1° -Utilizar Cheater й EXTREMAMENTE Proibido. ({FF0000}Ban{FFFFFF})\n2° -Respeite todos os Jogadores e Admins. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)\n3° -Proibido divulgar outros servidores. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n4° -Nгo abuse de Bugs. Ex: 2x2x2 Sawn. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1{FFFFFF} Kick)\n5° -Nгo faзa Drive-By, Spaws Kill, e nunca Flood mais de 3 vezes. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Kick)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n6° -Proibido teclar ESC em: Бreas de Ganhar Dinheiro/Porque ta morrendo/Бreas de DM. ({FF0000}Kick{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n7° -Nгo mate ninguem dentro de interiores. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)\n8° -Proibido abusar do Hydras, Hunters e Rhino em бreas de Respawn, Eventos. Use com moderaзгo! ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Cadeia)");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n9° -Xingamentos tem tolerвncia de nнvel: [/chinivel]");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n10° -Proibido Ofender Jogadores seja por, Racismo ou algo relacionado. ({FFFF00}2 {FFFFFF}Aviso + {FF0000}1 {FFFFFF}Calado)\n11° -O Vip que usar trapaзas/xiter serб banido normalmente. ({FF0000}Ban{FFFFFF})");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n                                                ** {38FF06}Promoзгo de VIP: {FF8040}Seja VIP no Mata-Mata por Somente {FF0000}R$ 5,00 {FFFFFF}Mensal **");
    format(strdialog, sizeof(strdialog),"%s%s",strdialog,"\n\n                                                                         Visite: {FF0000}www.xmatamata.forumeiros.com");
    ShowPlayerDialog(playerid, DIALOG_REGRAS, DIALOG_STYLE_MSGBOX, "{38FF06}Mata-Mata™ 2012 - Guerra em Las Venturas {FF0000}®", strdialog, "Aceito", "Discordo");
    //================//
    */


Se vocкis nгo viram no inicio do cуdigo tem /* e no fim */ ?

Aguardo respostas..
Reply
#7

Vбrias coisas estгo baixando seu desempenho, a principal й o dini, vocк tambйm vai ter problemas com esse strfind, mas claro isto tudo depende da sua mбquina.
Reply
#8

Quote:
Originally Posted by [S]trong
Посмотреть сообщение
Vбrias coisas estгo baixando seu desempenho, a principal й o dini, vocк tambйm vai ter problemas com esse strfind, mas claro isto tudo depende da sua mбquina.
hmmm , entгo [S]trong, o que vc me recomenda remover do OnPlayerConnect ou no OnPlayeRequestClass?

Como assim a dini? include?

Obrigado
Reply
#9

Quote:
Originally Posted by vascaino55
Посмотреть сообщение
hmmm , entгo [S]trong, o que vc me recomenda remover do OnPlayerConnect ou no OnPlayeRequestClass?

Como assim a dini? include?

Obrigado
Nгo sei mais acho que vc deveria remover o anti divulger e deixar mais limpo o seu onplayerconnect, talvez melhore.
Reply
#10

Vou tentar lhe ajudar, Faзa tudo oque eu estou pedindo logo abaixo:

Atualize seu OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
    //~ Mensagem de Bem Vindo
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~w~Ultimate ~r~Mata-Mata 2012! ~n~~n~ ~g~Guerra em ~y~Las Venturas",2500,5);
   
    //~ Sistema de Contagem De Players
    new string[128];
    format(string, sizeof(string), "%d/100",GetOnLinePlayers());
    TextDrawSetString(playersx, string);
    TextDrawShowForPlayer(playerid, playersx);

    //~ Setar a cor do player
    SetPlayerColor(playerid, 0xFFFFFFAA);
   
    //~ Restar algumas arrays ...
    Dominat[playerid]           = 0;
    EmDuelo[playerid]           = 0;
    EmGuerra[playerid]          = 0;
    gPlayerLogged[playerid]     = 0;
    gPlayerLogTries[playerid]   = 0;
    ccolete[playerid]           = 0;
    steleporte[playerid]        = 1;
    granastatus[playerid]       = 0;
    Matando[playerid]           = 0;
    JaPegouaGrana[playerid]     = 0;
    status[playerid]            = 0;
   
    //~ Mandar as principais mensagens de Bem Vindo...
    SendClientMessage(playerid, -1, #);SendClientMessage(playerid, -1, #);
    SendClientMessage(playerid, COLOR_BLACK,"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
    SendClientMessage(playerid, COLOR_ADMINCORPM, "»»»» Servidor Mata-Mata™ 2012 - Guerra em Las Venturas «««« ");
    SendClientMessage(playerid, COLOR_GOLD,"Para obter uma ajuda digite: /ajuda ");
    SendClientMessage(playerid,COLOR_CORAL,"Compre jб o seu VIP e seja Feliz, por somente R$ 5,00 Mensal");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Para saber como ganhar dinheiro digite: /cdin ");
    SendClientMessage(playerid,Amarelo,"Domine GangZonas com sua gang, para ver os comandos de gang digite: /gcomandos");
    SendClientMessage(playerid, COLOR_BLACK,"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
   
    //~ Sistema de Bem Vindo..
    format(string, sizeof(string), "[INFO] Vocк й o Visitante Nъmero %d Desde o Momento em que Foi Ligado o Servidor!", Visitors);
    SendClientMessage(playerid, Verde, string);
    Visitors ++;
   
    //~ Carregamento de Dados.
    if(dini_Isset("dinheiro.ini",PlayerName(playerid)))     GivePlayerMoney(playerid,dini_Int("dinheiro.ini",PlayerName(playerid)));
    if(dini_Isset("scores.ini",PlayerName(playerid)))       SetPlayerScore(playerid,dini_Int("scores.ini",PlayerName(playerid)));
    if(dini_Isset("sematou.dkn",PlayerName(playerid)))      PlayerInfo[playerid][pSematou] = (playerid,dini_Int("sematou.dkn",PlayerName(playerid)));
    if(dini_Isset("morreu.dkn",PlayerName(playerid)))       PlayerInfo[playerid][pMorreu] = (playerid,dini_Int("morreu.dkn",PlayerName(playerid)));
    if(dini_Isset("matou.dkn",PlayerName(playerid)))        PlayerInfo[playerid][pMatou] = (playerid,dini_Int("matou.dkn",PlayerName(playerid)));
    if(dini_Isset("dominou.dkn",PlayerName(playerid)))      PlayerInfo[playerid][pDominou] = (playerid,dini_Int("dominou.dkn",PlayerName(playerid)));
    if(dini_Isset("tk.dkn",PlayerName(playerid)))           PlayerInfo[playerid][pTeamkill] = (playerid,dini_Int("tk.dkn",PlayerName(playerid)));
    if(dini_Isset("Ganhoux1.dkn",PlayerName(playerid)))     PlayerInfo[playerid][Ganhoux1] = (playerid,dini_Int("Ganhoux1.dkn",PlayerName(playerid)));
    if(dini_Isset("Perdeux1.dkn",PlayerName(playerid)))     PlayerInfo[playerid][Perdeux1] = (playerid,dini_Int("Perdeux1.dkn",PlayerName(playerid)));
   

    gettime(hourtwohaha, minutetwohaha);
    SetPlayerTime(playerid,hourtwohaha,minutetwohaha);
    return 1;
}

Coloque no OnPlayerSpawn
pawn Код:
GangZoneShowForPlayer(playerid, Policia, gzcolor[0]);
    GangZoneShowForPlayer(playerid, Exercito, gzcolor[1]);
    GangZoneShowForPlayer(playerid, BOPE, gzcolor[2]);
    GangZoneShowForPlayer(playerid, Playboys, gzcolor[3]);
    GangZoneShowForPlayer(playerid, Noias, gzcolor[4]);
    GangZoneShowForPlayer(playerid, Frangos, gzcolor[5]);
    GangZoneShowForPlayer(playerid, Agentes, gzcolor[6]);
    GangZoneShowForPlayer(playerid, Chineses, gzcolor[7]);
    GangZoneShowForPlayer(playerid, Cowboys, gzcolor[8]);
    GangZoneShowForPlayer(playerid, Bozo, gzcolor[9]);
    GangZoneShowForPlayer(playerid, Grove, gzcolor[10]);
    GangZoneShowForPlayer(playerid, Ballas, gzcolor[11]);
    GangZoneShowForPlayer(playerid, Mafiosos, gzcolor[12]);
    GangZoneShowForPlayer(playerid, Lutadores, gzcolor[13]);
    GangZoneShowForPlayer(playerid, Barbies, gzcolor[14]);
    GangZoneShowForPlayer(playerid, Motoqueiros, gzcolor[15]);
    GangZoneShowForPlayer(playerid, Pedreiros, gzcolor[16]);
    GangZoneShowForPlayer(playerid, Favelados, gzcolor[17]);
    GangZoneShowForPlayer(playerid, Drifters, gzcolor[18]);
    GangZoneShowForPlayer(playerid, Idosos, gzcolor[19]);
    GangZoneShowForPlayer(playerid, Gorduchos, gzcolor[20]);
    GangZoneShowForPlayer(playerid, Golfistas, gzcolor[21]);
    GangZoneShowForPlayer(playerid, Aztecas, gzcolor[22]);
    GangZoneShowForPlayer(playerid, Pelados, gzcolor[23]);
    GangZoneShowForPlayer(playerid, VIP, gzcolor[24]);

Coloque no OnGameModeInit
pawn Код:
for(new i, e = GetMaxPlayers(); i != e; ++i)
    {
        HealthBar[i] = TextDrawCreate(548.000000, 66.000000, "100");
        TextDrawBackgroundColor(HealthBar[i], 255);
        TextDrawFont(HealthBar[i], 1);
        TextDrawLetterSize(HealthBar[i], 0.280000, 1.000000);
        TextDrawColor(HealthBar[i], -1);
        TextDrawSetOutline(HealthBar[i], 1);
        TextDrawSetProportional(HealthBar[i], 1);

        ArmourBar[i] = TextDrawCreate(548.000000, 43.000000, "100");
        TextDrawBackgroundColor(ArmourBar[i], 255);
        TextDrawFont(ArmourBar[i], 1);
        TextDrawLetterSize(ArmourBar[i], 0.290000, 1.100000);
        TextDrawColor(ArmourBar[i], -1);
        TextDrawSetOutline(ArmourBar[i], 1);
        TextDrawSetProportional(ArmourBar[i], 1);

        VehHealthBox1[i] = TextDrawCreate(547.000000, 9.000000, "..........");
        TextDrawBackgroundColor(VehHealthBox1[i], 255);
        TextDrawFont(VehHealthBox1[i], 3);
        TextDrawLetterSize(VehHealthBox1[i], 0.599999, 3.999999);
        TextDrawColor(VehHealthBox1[i], 255);
        TextDrawSetOutline(VehHealthBox1[i], 1);
        TextDrawSetProportional(VehHealthBox1[i], 1);

        VehHealthBox2[i] = TextDrawCreate(549.000000, 22.000000, "~g~..........");
        TextDrawBackgroundColor(VehHealthBox2[i], 912665855);
        TextDrawFont(VehHealthBox2[i], 3);
        TextDrawLetterSize(VehHealthBox2[i], 0.560000, 2.200000);
        TextDrawColor(VehHealthBox2[i], -1);
        TextDrawSetOutline(VehHealthBox2[i], 1);
        TextDrawSetProportional(VehHealthBox2[i], 1);

        VehHealthBox3[i] = TextDrawCreate(549.000000, 22.000000, "~g~~h~.........");
        TextDrawBackgroundColor(VehHealthBox3[i], 1369064191);
        TextDrawFont(VehHealthBox3[i], 3);
        TextDrawLetterSize(VehHealthBox3[i], 0.560000, 2.200000);
        TextDrawColor(VehHealthBox3[i], -1);
        TextDrawSetOutline(VehHealthBox3[i], 1);
        TextDrawSetProportional(VehHealthBox3[i], 1);

        VehHealthBar[i] = TextDrawCreate(548.000000, 32.000000, "100");
        TextDrawBackgroundColor(VehHealthBar[i], 255);
        TextDrawFont(VehHealthBar[i], 1);
        TextDrawLetterSize(VehHealthBar[i], 0.290000, 1.100000);
        TextDrawColor(VehHealthBar[i], -1);
        TextDrawSetOutline(VehHealthBar[i], 1);
        TextDrawSetProportional(VehHealthBar[i], 1);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)