Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Bv bine ca ai intrat, vrteau si eu un ajutor in legatura cu urmatoarele :D

1.Asta cum o pot face sa fie pentru membrii?, adica sa o poata deschide doar un membru? va rog sa imi aratat si sa modificati un pic daca este cazu

[pawn]if( strcmp(cmdtext, "/opengates", true)==0)

    {

        MoveDynamicObject(TCC, -487.9524,-560.3828,36.8985, 5);

        return 1;

}[/pawn]

2.Aici iti voi arata ceva, si sa faceti daca vreti cum sa ia bani chiar atuncia si nu al payday? ilk legatura cu jobul asta, va rog sa o modificati daca este cazul

[pawn]if(PlayerIsSweeping[playerid] == 1)

{

    if(IsPlayerInAnyVehicle(playerid))

    {

        new carid = GetPlayerVehicleID(playerid);

        if(IsASweeper(carid))

        {

            new cashes=(random(35-10)+10);

            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);

            format(string, sizeof(string), "~g~%d$ ~w~added to your paycheck",cashes);

            GameTextForPlayer(playerid, string, 5000, 1);

            DisablePlayerCheckpoint(playerid);

            PlayerInfo[playerid][pPayCheck] += cashes * 5;

            new randomss;

        randomss = random(sizeof(gSweeperPoints));

        SetPlayerCheckpoint(playerid, gSweeperPoints[randomss][0], gSweeperPoints[randomss][1], gSweeperPoints[randomss][2], 5.0);

        }

    }

    return 1;

}[/pawn]

Va multumesc pentru atentia acordata :D

2 answers to this question

Recommended Posts

Posted

1)  [pawn]if( strcmp(cmdtext, "/opengates", true)==0)

    {

if(PlayerInfo[playerid][pMember] == ID factiune || PlayerInfo[playerid][pLeader] == ID factiune)

{

MoveDynamicObject(TCC, -487.9524,-560.3828,36.8985, 5);

return 1;

}

}[/pawn]

Posted

Ai primit raspunsul la prima intrebare, pentru a 2a vezi aici. ;)

Locked!

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

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.