looking for "admin has logged in"
#1

Hi. i search a long time for "admin has logged in".

I mean: when a admin log into the server, the server says: admin Gstar has logged in (lvl 1337).

do you have it? please tell me where to place it

Im using PEN LS


THX Allot!
Reply
#2

More information about the admin fs or gamemode you're using.
Reply
#3

Код:
public OnPlayerConnect(playerid)
{
new AdminName[MAX_PLAYER_NAME] , string[128]; 
format(string, sizeof(string), "Admin % has logged in", AdminName);
SendClientMessageForAll(playerid, CHANGECOLOR, string);
return 1;
}
Reply
#4

Quote:
Originally Posted by Krys^
Код:
public OnPlayerConnect(playerid)
{
new AdminName[MAX_PLAYER_NAME] , string[128]; 
format(string, sizeof(string), "Admin % has logged in", AdminName);
SendClientMessageForAll(playerid, CHANGECOLOR, string);
return 1;
}
fail.
Reply
#5

Quote:
Originally Posted by Karlip
Quote:
Originally Posted by Krys^
Код:
public OnPlayerConnect(playerid)
{
new AdminName[MAX_PLAYER_NAME] , string[128]; 
format(string, sizeof(string), "Admin % has logged in", AdminName);
SendClientMessageForAll(playerid, CHANGECOLOR, string);
return 1;
}
fail.
Huh what you mean?

Reply
#6

Quote:
Originally Posted by Krys^
Huh what you mean?
You putted the code at OnPlayerConnect-callback.
Reply
#7

Krys^, why don't you try this script yourself?
Either you provide a correct script, or you don't.
Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Krys^
Huh what you mean?
You putted the code at OnPlayerConnect-callback.
That is the least of the problems in this 7-line piece of code.
Reply
#8

Quote:
Originally Posted by IJzerenRita
That is the least of the problems in this 7-line piece of code.
Indeed, i missed the worst problem:
Quote:
Originally Posted by Krys^
Код:
SendClientMessageForAll(playerid, CHANGECOLOR, string);
Reply
#9

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by IJzerenRita
That is the least of the problems in this 7-line piece of code.
Indeed, i missed the worst problem:
Quote:
Originally Posted by Krys^
Код:
SendClientMessageForAll(playerid, CHANGECOLOR, string);
And he's not getting the player's name.
Reply
#10

And he doesn't know if the player is an admin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)