04.01.2012, 10:57
Errado seria OnGameMode como Caroline disse acima, ai vocк teria que colocar em OnPlayerConnect, o seguite:
Ai vocк terб que colocar na dialog de 'login' quando ele acerta-se a senha:
Ou entгo recomendo a criar um SetTimer ;*
//OnPlayerConnect
pawn Код:
TextDrawShowForPlayer(playerid, Intro[0]);
TextDrawShowForPlayer(playerid, Intro[1]);
TextDrawShowForPlayer(playerid, Intro[2]);
TextDrawShowForPlayer(playerid, Intro[3]);
TextDrawShowForPlayer(playerid, Intro[4]);
TextDrawShowForPlayer(playerid, Intro[5]);
TextDrawShowForPlayer(playerid, Intro[6]);
TextDrawShowForPlayer(playerid, Intro[7]);
TextDrawShowForPlayer(playerid, Intro[8]);
TextDrawShowForPlayer(playerid, Intro[9]);
TextDrawShowForPlayer(playerid, Intro[10]);
TextDrawShowForPlayer(playerid, Intro[11]);
pawn Код:
TextDrawHideForPlayer(playerid, Intro[0]);
TextDrawHideForPlayer(playerid, Intro[1]);
TextDrawHideForPlayer(playerid, Intro[2]);
TextDrawHideForPlayer(playerid, Intro[3]);
TextDrawHideForPlayer(playerid, Intro[4]);
TextDrawHideForPlayer(playerid, Intro[5]);
TextDrawHideForPlayer(playerid, Intro[6]);
TextDrawHideForPlayer(playerid, Intro[7]);
TextDrawHideForPlayer(playerid, Intro[8]);
TextDrawHideForPlayer(playerid, Intro[9]);
TextDrawHideForPlayer(playerid, Intro[10]);
TextDrawHideForPlayer(playerid, Intro[11]);
//OnPlayerConnect
pawn Код:
//OnPlayerConnect
SetTimerEx("TextoEntrada", 5000, false, "i", playerid);
//Explicaзгo: depois de 5 segundo que ele logar os textos sumirгo,
//caso queira alterar para mais tempo altere o nъmero '5000'
//para o valor desejado lembrando
//5000 = 5 segundos
//Final do GameMode
forward TextoEntrada(playerid)
public TextoEntrada(playerid)
{
TextDrawHideForPlayer(playerid, Intro[0]);
TextDrawHideForPlayer(playerid, Intro[1]);
TextDrawHideForPlayer(playerid, Intro[2]);
TextDrawHideForPlayer(playerid, Intro[3]);
TextDrawHideForPlayer(playerid, Intro[4]);
TextDrawHideForPlayer(playerid, Intro[5]);
TextDrawHideForPlayer(playerid, Intro[6]);
TextDrawHideForPlayer(playerid, Intro[7]);
TextDrawHideForPlayer(playerid, Intro[8]);
TextDrawHideForPlayer(playerid, Intro[9]);
TextDrawHideForPlayer(playerid, Intro[10]);
TextDrawHideForPlayer(playerid, Intro[11]);
return 1;
}


