looking for "admin has logged in" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: looking for "admin has logged in" (
/showthread.php?tid=104849)
looking for "admin has logged in" -
[FBI]Gstar - 26.10.2009
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!
Re: looking for "admin has logged in" -
Correlli - 26.10.2009
More information about the admin fs or gamemode you're using.
Re: looking for "admin has logged in" -
MB@ - 26.10.2009
Код:
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;
}
Re: looking for "admin has logged in" -
Karlip - 26.10.2009
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.
Re: looking for "admin has logged in" -
MB@ - 26.10.2009
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?
Re: looking for "admin has logged in" -
Correlli - 26.10.2009
Quote:
Originally Posted by Krys^
Huh what you mean?
|
You putted the code at OnPlayerConnect-callback.
Re: looking for "admin has logged in" -
IJzerenRita - 26.10.2009
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.
Re: looking for "admin has logged in" -
Correlli - 26.10.2009
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);
|
Re: looking for "admin has logged in" -
Karlip - 26.10.2009
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.
Re: looking for "admin has logged in" -
IJzerenRita - 26.10.2009
And he doesn't know if the player is an admin.