Jump to content
  • 0

Ladmin4v2 problem :|


[RDE]Secret

Question

Sall miam luat Ladmin4v2 de la Vampir_Md dar knd se connecteaza cnv pe sv nu apare nik ...adik joaca tot dar nu scrie nici unde

x a intrat pe server sau ceva de genul acesta:))...

:angry:

la onplayerconnect am asta:

[pawn]public OnPlayerConnect(playerid)

{

PlayerInfo[playerid][Deaths] = 0;

PlayerInfo[playerid][Kills] = 0;

PlayerInfo[playerid][Jailed] = 0;

PlayerInfo[playerid][Frozen] = 0;

PlayerInfo[playerid][Level] = 0;

PlayerInfo[playerid][Vip] = 0;

PlayerInfo[playerid][LoggedIn] = 0;

PlayerInfo[playerid][Registered] = 0;

PlayerInfo[playerid][God] = 0;

PlayerInfo[playerid][GodCar] = 0;

PlayerInfo[playerid][TimesSpawned] = 0;

PlayerInfo[playerid][Muted] = 0;

PlayerInfo[playerid][MuteWarnings] = 0;

PlayerInfo[playerid][Warnings] = 0;

PlayerInfo[playerid][Caps] = 0;

PlayerInfo[playerid][DoorsLocked] = 0;

PlayerInfo[playerid][pCar] = -1;

for(new i; i<PING_MAX_EXCEEDS; i++) PlayerInfo[playerid][pPing] = 0;

PlayerInfo[playerid][spamCount] = 0;

PlayerInfo[playerid][spamTime] = 0;

PlayerInfo[playerid][PingCount] = 0;

PlayerInfo[playerid][PingTime] = 0;

PlayerInfo[playerid][FailLogin] = 0;

PlayerInfo[playerid][ConnectTime] = gettime();

pRank[playerid] = 0;

gPlayerLogged[playerid] = 1;

    SavePlayerCoins(playerid);

//------------------------------------------------------

new PlayerName[MAX_PLAYER_NAME], string[128], str[128], file[256];

GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);

new tmp3[50]; GetPlayerIp(playerid,tmp3,50);

//-----------------------------------------------------

if(ServerInfo[ConnectMessages] == 1)

{

    new pAKA[256]; pAKA = dini_Get("ladmin/config/aka.txt",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[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);

}

}

}

//-----------------------------------------------------

    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);

    }

//-----------------------------------------------------

if(ServerInfo[NameKick] == 1) {

for(new s = 0; s < BadNameCount; s++) {

  if(!strcmp(BadNames,PlayerName,true)) {

SendClientMessage(playerid,red, "Your name is on our black list, you have been kicked.");

format(string,sizeof(string),"%s ID:%d was auto kicked. (Reason: Forbidden name)",PlayerName,playerid);

SendClientMessageToAll(grey, string);  print(string);

SaveToFile("KickLog",string);  Kick(playerid);

return 1;

}

}

}

//-----------------------------------------------------

if(ServerInfo[PartNameKick] == 1) {

for(new s = 0; s < BadPartNameCount; s++) {

new pos;

while((pos = strfind(PlayerName,BadPartNames,true)) != -1) for(new i = pos, j = pos + strlen(BadPartNames); i < j; i++)

{

SendClientMessage(playerid,red, "Your name is not allowed on this server, you have been kicked.");

format(string,sizeof(string),"%s ID:%d was auto kicked. (Reason: Forbidden name)",PlayerName,playerid);

SendClientMessageToAll(grey, string);  print(string);

SaveToFile("KickLog",string);  Kick(playerid);

return 1;

}

}

}

//-----------------------------------------------------

if(ServerInfo[Locked] == 1) {

PlayerInfo[playerid][AllowedIn] = false;

SendClientMessage(playerid,red,"Server is Locked!  You have 20 seconds to enter the server password before you are kicked!");

SendClientMessage(playerid,red," Type /password [password]");

LockKickTimer[playerid] = SetTimerEx("AutoKick", 20000, 0, "i", playerid);

}

//-----------------------------------------------------

if(strlen(dini_Get("ladmin/config/aka.txt", tmp3)) == 0) dini_Set("ladmin/config/aka.txt", tmp3, PlayerName);

else

{

    if( strfind( dini_Get("ladmin/config/aka.txt", tmp3), PlayerName, true) == -1 )

{

    format(string,sizeof(string),"%s,%s", dini_Get("ladmin/config/aka.txt",tmp3), PlayerName);

    dini_Set("ladmin/config/aka.txt", tmp3, string);

}

}

//-----------------------------------------------------

    if(!udb_Exists(PlayerName2(playerid))) SendClientMessage(playerid,orange, "{00CEFC}ACCOUNT: {00FF19}Scrie {FC0303}/register {FFFFFF}[{00CEFC}password{FFFFFF}] {00FF19}pentru a creea un cont nou");

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;

}[/pawn]

si mai am kte ceva:)) dar nu incape aici :D

pls ajutor

youtube.com/secretofficial1 < - SECRET CHANNEL !

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Downloadeazal iar

Sau daca nu explica si tu ce face:)

Am inteles doar ca joaca tot.

Ma :| knd intra cineva la mine pe server nu scrie "x a intrat pe server" sau "x join to server".. Adik nu da un SendClientMessage..cu ca el a intrat pe server...:|Si nustiu knd intra un player pe server.

Si exact asa si knd iasa nu zice nimic...

youtube.com/secretofficial1 < - SECRET CHANNEL !

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.