Jump to content

Recommended Posts

Posted

Iti puteti face orice comanda pentru admin . Dupa tutorial-ul lui Widualk ?

Ma refer la cel de register/login .

Sau sa o transformati pe asta ca dupa stiu eu sa le fac.

Quote

CMD:o(playerid, params[])
{
    new message[128], string[256], sendername[25];
    if(playerVariables[playerid][pAdminLevel] >= 1)
    {
        if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/o [message]");
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "(( %s says: %s ))", sendername, message);
            SendClientMessageToAll(COLOR_LIGHT, string);
        }
    }
    else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    return 1;
}

 

Posted
Acum 2 ore, david1995 a spus:

Iti puteti face orice comanda pentru admin . Dupa tutorial-ul lui Widualk ?

Ma refer la cel de register/login .

Sau sa o transformati pe asta ca dupa stiu eu sa le fac.

 

Nu am inteles nimic,ce problema ai ?

Posted

Adaugi asta: 

If (P_Data[playerid][pAdmin] < 1) return 0;

comenzi si va fi folosita doar de admini,aceasta variabila am vazut-o la tutorialu precizat de tine

Posted
1 hour ago, keNN. said:

Nu am inteles nimic,ce problema ai ?

Eu ma refer sa

 

1 hour ago, Banditul said:

Adaugi asta: 

If (P_Data[playerid][pAdmin] < 1) return 0;

comenzi si va fi folosita doar de admini,aceasta variabila am vazut-o la tutorialu precizat de tine

Acuma imi da eroarile astea.

Quote

C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(546) : error 029: invalid expression, assumed zero
C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(546) : warning 215: expression has no effect
C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(546) : error 001: expected token: ";", but found "return"
C:\Users\Darius\Desktop\new prj\pawno\rpg.pwn(547) : warning 225: unreachable code
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

linia 546

Quote

else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

si linia 547

Quote

return 1;

 

Posted

CMD:o(playerid, params[])
{
    new message[128], string[256], sendername[25];
    If (P_Data[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/o [message]");
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "(( %s says: %s ))", sendername, message);
            SendClientMessageToAll(COLOR_LIGHT, string);
        }
   
    return 1;
}

 

Poftim,scuze is pe telefon

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.