12.09.2012, 16:00
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
Thanks, Help me and get a reputation
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); }
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. |
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 { |
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 |