Vampir_MD Administrator
Mesaje : 543 Puncte : 1299 Reputatie : 2 Data de inscriere : 06/08/2011 Varsta : 30 Localizare : Spainia
| Subiect: [FilterScript]New Sistem Ladmin4v2 Vin Mar 09, 2012 1:02 pm | |
| - Cod:
-
if(ServerInfo[ConnectMessages] == 1) { new pAKA[256]; pAKA = dini_Get("ladmin/users/",tmp3); if (strlen(pAKA) < 3) format(str,sizeof(str),"{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a intrat pe server", PlayerName, playerid); else if (!strcmp(pAKA,PlayerName,true)) format(str,sizeof(str),"{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a intrat pe server", PlayerName, playerid); else format(str,sizeof(str),"{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a intrat pe server {FFFFFF}({00FF19}aka {FC0303}%s{FFFFFF})", PlayerName, playerid, pAKA ); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && playerid != i) { if(PlayerInfo[i][Level] > 2) SendClientMessage(i,grey,str); else { format(string,sizeof(string),"{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a intrat pe server", PlayerName, playerid); SendClientMessage(i,grey,string); } } } - Cod:
-
if (dUserINT(PlayerName2(playerid)).("banned") == 1) { SendClientMessage(playerid, red, "{FC0303}Acest nume este banat pe server!"); format(string,sizeof(string),"{00CEFC}%s {00FF19}ID:%d {FC0303}a primit kick. {00FF19}Reason: {FC0303}Name banned from server",PlayerName,playerid); SendClientMessageToAll(grey, string); print(string); SaveToFile("KickLog",string); Kick(playerid); } - Cod:
-
if(!udb_Exists(PlayerName2(playerid))) ShowPlayerDialog(playerid); else { PlayerInfo[playerid][Registered] = 1; format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName)); new tmp2[256]; tmp2 = dini_Get(file,"ip"); if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) ) { LoginPlayer(playerid); if(ServerInfo[SetScore] == 1) SetPlayerScore(playerid, dUserINT(PlayerName2(playerid)).("score") ); if(PlayerInfo[playerid][Level] > 0) { format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat. {FFFFFF}({00CEFC}Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Level] ); SendClientMessage(playerid,green,string); } else if(PlayerInfo[playerid][Vip] > 0) { format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat. {FFFFFF}({00CEFC}Vip Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Vip] ); SendClientMessage(playerid,green,string); } else SendClientMessage(playerid,green,"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat."); } else SendClientMessage(playerid, green, "{00CEFC}ACCOUNT: {00FF19}Acest nick este inregistrat {FC0303}, {00FF19}te poti loga folosind {FC0303}/login {FFFFFF}[{00CEFC}password{FFFFFF}]"); } return 1; } - Cod:
-
if(ServerInfo[ConnectMessages] == 1) { switch (reason) { case 0: format(str, sizeof(str), "{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a iesit de pe server {FFFFFF}({FC0303}Timeout{FFFFFF})", PlayerName, playerid); case 1: format(str, sizeof(str), "{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a iesit de pe server {FFFFFF}({FC0303}Singur{FFFFFF})", PlayerName, playerid); case 2: format(str, sizeof(str), "{00CEFC}*** %s {FFFFFF}({FC0303}%d{FFFFFF}) {00FF19}a iesit de pe server {FFFFFF}({FC0303}Kicked/Banned{FFFFFF})", PlayerName, playerid); } | |
|