Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Nume: Martin
Problema: nu functioneaza comanda /cc
Imagini/Video: nu este nevoie
Cod Sursa:

CMD:cc(playerid, params[]) {
     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
     foreach(Player, i) {
         if(PlayerInfo[i][pAdmin] < 1) {
   for(new i = 0; i < 50; i++) SendClientMessageToAll(COLOR_WHITE," ");
         }
     }
     new string[100];
     format(string, sizeof(string), "Warning: %s a sters chatul.",GetName(playerid));
     if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string,1);
     return 1;
 }

Alte detalii: efectiv scriu /cc si nu se intampla nimic apare doar pe server ca adminul x a sters chatul dar defapt nu s-a sters nimic totul a ramas neschimbat.

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

CMD:cc(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    foreach(Player, i) {
        if(PlayerInfo[pAdmin] < 1) {
            for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, "");
        }
    }
    new string[100];
    format(string, sizeof(string), "Warning: %s a sters chatul.",GetName(playerid));
    if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string,1);
    return 1;
}

 

//Incearca comanda aceasta, este functionala 100%.

//ATENTIE: Comanda sterge doar chat-ul jucatorilor, nu si cel al adminilor.

Edited by Dedey

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.