Jump to content

Recommended Posts

Posted

Buna vreau ca comanda asta sa aive acces doar admini ma puteti ajuta ?

CMD:cca( playerid, params[ ] )
    {
    for( new i = 0; i < 20; i++ )
    {
          SendClientMessageToAll(-1, "");
    }
    return 1 ;
}

Posted

if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly); un exemplu, poti sa modifici tu ce sa-ti de0a la SCM, 

Ares4  =(

 

 

  • 3 weeks later...
Posted

CMD:cca( playerid, params[ ] )

     if(gPlayerLogged[playerid] == 0) return 1; // verifica daca e logat, daca vr sa ii returneze un mesaj poti pune un mesaj in loc de return 1 pun return SCM(playerid, -1, "bla bla");

    if(PlayerInfo[playerid][pAdmin] < 6) return 1; // verifica daca are admin mai mic de 6 sa nu poata da /cca
    {
    for( new i = 0; i < 20; i++ )
    {
          SendClientMessageToAll(-1, "");
    }
    return 1 ;
}

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.