Jump to content

Question

Posted

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

2 answers to this question

Recommended Posts

Posted

dupa acea verificare daca e in masina adauga asta

[pawn]

if(PlayerInfo[playerid][pRank] < 4)

{

SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa fi minim rank 4 pentru a folosi aceasta comanda!");

    return 1;

}

[/pawn]

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.