Jump to content
  • 0

Mori de Ras =)))


John_Ionut

Question

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

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.