[Ajuda] Mensagen quando o admin entra
#1

alguem poderia mim da uma forзa to tentando cria um tipo de mensagem exp quando o admin entra no server mostra tal admin esta online ex: ADM: M4LV4D0 esta Online
Reply
#2

pawn Код:
//em OnPlayerConnect:
if(IsPlayerAdmin(playerid))//Troque IsPlayerAdmin pela sua variavel de admin....
{
new texto[64], admnome[MAX_PLAYER_NAME];
format(texto, sizeof(texto), "O Admin %s logou no servidor!", admnome);
SendClientMessageToAll(-1, texto);
}

//em OnPlayerDisconnect:
if(IsPlayerAdmin(playerid))//Troque IsPlayerAdmin pela sua variavel de admin....
{
new texto[64], admnome[MAX_PLAYER_NAME];
format(texto, sizeof(texto), "O Admin %s desconectou do servidor!", admnome);
SendClientMessageToAll(-1, texto);
}
Reply
#3

Quote:
Originally Posted by focaximubh
Посмотреть сообщение
pawn Код:
//em OnPlayerConnect:
if(IsPlayerAdmin(playerid))//Troque IsPlayerAdmin pela sua variavel de admin....
{
new texto[64], admnome[MAX_PLAYER_NAME];
format(texto, sizeof(texto), "O Admin %s logou no servidor!", admnome);
}

//em OnPlayerDisconnect:
if(IsPlayerAdmin(playerid))//Troque IsPlayerAdmin pela sua variavel de admin....
{
new texto[64], admnome[MAX_PLAYER_NAME];
format(texto, sizeof(texto), "O Admin %s desconectou do servidor!", admnome);
}
deu esses erro aki

Код:
C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : error 012: invalid function call, not a valid address
C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : warning 215: expression has no effect
C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : error 001: expected token: ";", but found ")"
C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : error 029: invalid expression, assumed zero
C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)