Jump to content

Question

Posted

Am o problema cu banul. Am luat ban ip pe sv meu.

Am dat rr la modem.

Am sters contul din scriptfiles...

Ce sa mai fac? Imi apare Connect 127.0.0.1:7777 apoi Connected. Joining the game. Si apoi Server Closed Conection.

P.S.: Serverul nu este hostat. Inca lucram la el cand s-a intamplat asta.

8 answers to this question

Recommended Posts

Posted

Stergeti contul din fisierul scriptfiles , si refatii altu , daca tot asa iti da vezi la comanda /ban daca ai undeva la pPlayer > 1 [parca] daca ai asa ceva punel la 0

Invat ca sa Invat.

Posted

[pawn]if(strcmp(cmd, "/ban", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "{0033FF}UTILIZEAZA:{FFFFFF}: /ban [iDJucator/PARTEdinNUME] [motiv]");

return 1;

}

giveplayerid = ReturnUser(tmp);

  if (PlayerInfo[playerid][pAdmin] >= 1)

{

    if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[900];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, COLOR_GRAD2, "{0033FF}UTILIZEAZA:{FFFFFF}: /ban [iDJucator/PARTEdinNUME] [motiv]");

return 1;

}

new banstring[64];

new year, month,day;

getdate(year, month, day);

format(string, sizeof(string), "AdmCmd: %s a fost banat de %s, Motiv: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);

BanLog(string);

format(string, sizeof(string), "AdmCmd: %s a fost banat de %s, Motiv: %s", giveplayer, sendername, (result));

SendClientMessageToAll(COLOR_LIGHTRED, string);

PlayerInfo[giveplayerid][pLocked] = 1;

format(banstring, sizeof(banstring), "Admin: %s | Motiv %s", sendername, (result));

BanEx( giveplayerid, banstring );

return 1;

}

}//not connected

}

else

{

format(string, sizeof(string), "  %d nu este un jucator activ.", giveplayerid);

SendClientMessage(playerid, COLOR_GRAD1, string);

}

}

return 1;

}[/pawn]

Asta e comanda. Ce trb sa modific??

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.