Jump to content
  • 0

Salutari


SkilleT

Question

Pot spune ca sunt nou in faza de scripting si am unele nevoi mai simple si prostutze dar asta e nu am avut  de unde invata chestiile astea :(

Vreau sa modific o comanda sa poata fi folosita doar de rank4 la LSPD

Am comanda adaugata tot dar vreau sa stiu cum trebuie sa o modific ca sa o poata folosi doar rank4 +

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

{

        if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)

{

    if(IsPlayerInAnyVehicle(playerid))

            {

    SendClientMessage(playerid, COLOR_GREY, "Cannot use this while being in the Car !");

                return 1;

        }

[/pawn]

Multumesc

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.