if(Informacoes[playerid][PlayerAdmin] < 3)
{
new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
public OnPlayerConnect(playerid) { PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/93019797/1.mp3.mp3"); TextDrawShowForPlayer(playerid,drift); //quando o player se conectar no server apareзerб as text drawns TextDrawShowForPlayer(playerid,dm); TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); JaConvidou[playerid] = 0; EmSexo[playerid] = 0; SendDeathMessage(playerid, INVALID_PLAYER_ID, 200); GameTextForPlayer(playerid,"~b~Bem Vindo",5000,5); // MENSAGEM AO ENTRAR QUE NEM TEXTDRAW SendClientMessage(playerid, 0xFFFF00AA, ">> Seja Bem Vindo Ao Server<<"); // MENSAGEM AO ENTRAR if(Informacoes[playerid][PlayerAdmin] < 3) { new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7); } new string[40]; new pName[25]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "%s Entrou no Servidor!", pName); // mensagem se alguem entrar SendClientMessageToAll(0xAAAAAAAA, string); // COR if(Informacoes[playerid][PlayerBanido] == 1) return Mensagem(playerid, RED, "Banido do Servidor Temporariбmente, Bye!"), Kick(playerid); if(DOF2_FileExists(PlayerArchive(playerid))) { ShowPlayerDialog(playerid, LoginCase, DIALOG_STYLE_INPUT,"Logando no Servidor", "Bem Vindo Novamente\nLogue-se com Sua Senha do Registro","Logar","Cancelar"); } else { ShowPlayerDialog(playerid, RegisterCase, DIALOG_STYLE_INPUT,"Registrando no Servidor", "Bem Vindo ao Servidor\nDigite sua Senha Abaixo Para Registrar-se","Registrar","Cancelar"); } return 1; }
if(Informacoes[playerid][PlayerAdmin] > 0)
if(Informacoes[playerid][PlayerAdmin] > 0)
if(Informacoes[playerid][PlayerAdmin] > 0)
{
new Text3D:label = Create3DTextLabel("{0xFFFF00AA}Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
//topo
new Text3D:label[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
label[playerid] = Create3DTextLabel("Olб sou admin do Servidor\nPosso ajudar ?", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
return 1;
}
public OnPlayerUpdate(playerid)
{
if(Informacoes[playerid][PlayerAdmin] >= 1)
{
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 2.0);
}
return 1;
}
//OnPlayerSpawn
SetTimer ( " DonSpeed " , 1000 , true ) ;
//Final do GM
forward DonSpeed(playerid);
public DonSpeed(playerid)
{
if(Informacoes[playerid][PlayerAdmin] < 3)
{
new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
else
{
Delete3DTextLabel ( playerid ) ;
DeletePlayer3DTextLabel ( playerid ) ;
}
return true;
}
Tenta assim
pawn Код:
|