12.12.2017, 22:16
vou da um exemplo
public OnPlayerRequestClass
{
MostrarLogin(playerid);//mostra as textdraw de login
public OnPlayerSpawn(playerid)
{
TirarLogin(playerid);//tira tela de login apos Spawnar no servidor
forward MostrarLogin(playerid);
public MostrarLogin(playerid)
{
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
TextDrawShowForPlayer(playerid, TDEditor_TD[4]);
TextDrawShowForPlayer(playerid, TDEditor_TD[5]);
TextDrawShowForPlayer(playerid, TDEditor_TD[6]);
TextDrawShowForPlayer(playerid, TDEditor_TD[7]);
TextDrawShowForPlayer(playerid, TDEditor_TD[8]);
TextDrawShowForPlayer(playerid, TDEditor_TD[9]);
TextDrawShowForPlayer(playerid, TDEditor_TD[10]);
TextDrawShowForPlayer(playerid, TDEditor_TD[11]);
TextDrawShowForPlayer(playerid, TDEditor_TD[12]);
TextDrawShowForPlayer(playerid, TDEditor_TD[13]);
TextDrawShowForPlayer(playerid, TDEditor_TD[14]);
TextDrawShowForPlayer(playerid, TDEditor_TD[15]);
TextDrawShowForPlayer(playerid, TDEditor_TD[16]);
TextDrawShowForPlayer(playerid, TDEditor_TD[17]);
TextDrawShowForPlayer(playerid, TDEditor_TD[18]);
TextDrawShowForPlayer(playerid, TDEditor_TD[19]);
return 1;
}
forward TirarLogin(playerid);
public TirarLogin(playerid)
{
TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
TextDrawHideForPlayer(playerid, TDEditor_TD[4]);
TextDrawHideForPlayer(playerid, TDEditor_TD[5]);
TextDrawHideForPlayer(playerid, TDEditor_TD[6]);
TextDrawHideForPlayer(playerid, TDEditor_TD[7]);
TextDrawHideForPlayer(playerid, TDEditor_TD[8]);
TextDrawHideForPlayer(playerid, TDEditor_TD[9]);
TextDrawHideForPlayer(playerid, TDEditor_TD[10]);
TextDrawHideForPlayer(playerid, TDEditor_TD[11]);
TextDrawHideForPlayer(playerid, TDEditor_TD[12]);
TextDrawHideForPlayer(playerid, TDEditor_TD[13]);
TextDrawHideForPlayer(playerid, TDEditor_TD[14]);
TextDrawHideForPlayer(playerid, TDEditor_TD[15]);
TextDrawHideForPlayer(playerid, TDEditor_TD[16]);
TextDrawHideForPlayer(playerid, TDEditor_TD[17]);
TextDrawHideForPlayer(playerid, TDEditor_TD[18]);
TextDrawHideForPlayer(playerid, TDEditor_TD[19]);
CancelSelectTextDraw(playerid);
return 1;
}
Apenas um exemplo para v se consegue ter uma ideia de como se fazer! sem criticas pfv
so quiz ajudar do jeito q criei a minha
public OnPlayerRequestClass
{
MostrarLogin(playerid);//mostra as textdraw de login
public OnPlayerSpawn(playerid)
{
TirarLogin(playerid);//tira tela de login apos Spawnar no servidor
forward MostrarLogin(playerid);
public MostrarLogin(playerid)
{
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
TextDrawShowForPlayer(playerid, TDEditor_TD[4]);
TextDrawShowForPlayer(playerid, TDEditor_TD[5]);
TextDrawShowForPlayer(playerid, TDEditor_TD[6]);
TextDrawShowForPlayer(playerid, TDEditor_TD[7]);
TextDrawShowForPlayer(playerid, TDEditor_TD[8]);
TextDrawShowForPlayer(playerid, TDEditor_TD[9]);
TextDrawShowForPlayer(playerid, TDEditor_TD[10]);
TextDrawShowForPlayer(playerid, TDEditor_TD[11]);
TextDrawShowForPlayer(playerid, TDEditor_TD[12]);
TextDrawShowForPlayer(playerid, TDEditor_TD[13]);
TextDrawShowForPlayer(playerid, TDEditor_TD[14]);
TextDrawShowForPlayer(playerid, TDEditor_TD[15]);
TextDrawShowForPlayer(playerid, TDEditor_TD[16]);
TextDrawShowForPlayer(playerid, TDEditor_TD[17]);
TextDrawShowForPlayer(playerid, TDEditor_TD[18]);
TextDrawShowForPlayer(playerid, TDEditor_TD[19]);
return 1;
}
forward TirarLogin(playerid);
public TirarLogin(playerid)
{
TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
TextDrawHideForPlayer(playerid, TDEditor_TD[4]);
TextDrawHideForPlayer(playerid, TDEditor_TD[5]);
TextDrawHideForPlayer(playerid, TDEditor_TD[6]);
TextDrawHideForPlayer(playerid, TDEditor_TD[7]);
TextDrawHideForPlayer(playerid, TDEditor_TD[8]);
TextDrawHideForPlayer(playerid, TDEditor_TD[9]);
TextDrawHideForPlayer(playerid, TDEditor_TD[10]);
TextDrawHideForPlayer(playerid, TDEditor_TD[11]);
TextDrawHideForPlayer(playerid, TDEditor_TD[12]);
TextDrawHideForPlayer(playerid, TDEditor_TD[13]);
TextDrawHideForPlayer(playerid, TDEditor_TD[14]);
TextDrawHideForPlayer(playerid, TDEditor_TD[15]);
TextDrawHideForPlayer(playerid, TDEditor_TD[16]);
TextDrawHideForPlayer(playerid, TDEditor_TD[17]);
TextDrawHideForPlayer(playerid, TDEditor_TD[18]);
TextDrawHideForPlayer(playerid, TDEditor_TD[19]);
CancelSelectTextDraw(playerid);
return 1;
}
Apenas um exemplo para v se consegue ter uma ideia de como se fazer! sem criticas pfv
so quiz ajudar do jeito q criei a minha