Jump to content

Question

Posted

Salutare ma chinui de 2 zile sa fac o comanda care sa mearga doar pentru admini si nu reusesc va rog ajutatima

public OnPlayerCommandText(playerid, cmdtext[])

{

    if (strcmp("/cg", cmdtext, true, 10) == 0)

{

    if(IsPlayerAdmin(playerid))

    {

      MoveObject(rampa,  121.69024, 313.76419, 75.41006, 8);

    }

    else return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Nu esti RCON Admin!");

}

if (strcmp("/og", cmdtext, true, 10) == 0)

    {

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

{

MoveObject(rampa,  121.69024, 313.76419, 69.10378, 8);

}

else

{

    SendClientMessage(playerid, 0xFFFFFFFF, "Nu esti un administrator level 1.");

}

return 1;

    }

return 0;

}

NWtAk.jpg?1

4 answers to this question

Recommended Posts

Posted

Mi se pare okay, prima comanda ai pus sa aiba acces doar cu rcon login iar a 2 pe grad-ul facut de tine :-? ce anume nu iti merge?

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.