[REQUEST] Telling the admins when the players logs in
#1

Hello, I just want a script that tells the admins when the player logs in, and also it ip when he logs in..


Thanks, Help me and get a reputation
Reply
#2

just add this to your /login command or if you want it to show when a player joins put it under OnPlayerConnect.

Код:
new pip[128], str[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerIp(playerid,pip,128);
format(str, sizeof(str), "%s has logged in, IP: %s", pname, pip);
for(new i = 0; i <MAX_PLAYERS; i++)
if(padmin[i] > 0) //or however you check for your admin level
{
    SendClientMessage(i,0xA500FFC5,str);
}
Reply
#3

You were +REP'ed I guess lol
Reply
#4

But wait, some errors showed up:

Quote:

C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(18250) : error 028: invalid subscript (not an array or too many subscripts): "pAdmin"
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(18250) : warning 215: expression has no effect
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(18250) : error 001: expected token: ";", but found "]"
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(18250) : error 029: invalid expression, assumed zero
C:\Users\TSC\Desktop\FIXED\UPGRADED AND FIXED\gamemodes\NE-RP.pwn(18250) : 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
#5

Show us the line 18249-18251
Reply
#6

Quote:

GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "%s.ini", plname);
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "Welcome Back to {00FFEE}Next Evolution RP {F3FF02}- Login and Enjoy your Stay.");
return 1;
}
else
{

Here u go
Reply
#7

Quote:
Originally Posted by Edmund_Kavel
Посмотреть сообщение
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "%s.ini", plname);
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "Welcome Back to {00FFEE}Next Evolution RP {F3FF02}- Login and Enjoy your Stay.");
return 1;
}
else
{

Here u go
looks like these lines have nothing to do with the errors you got or with the code i sent you ??
can you send the correct lines?
Reply
#8

All you have to do, is send a Prox detector Message to pAdmin= 'Level', Its very simple
Reply
#9

How to do it then please help
Reply
#10

Quote:
Originally Posted by Edmund_Kavel
Посмотреть сообщение
How to do it then please help
Pm'ed You....

Check It...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)