Jump to content
  • 0

Problema comanda /v lock


friezakinght

Question

salut am si eu o problema, folosesc gm-ul Raven's Roleplay si cand dau /v lock scrie Vehicul Blocat (l-am tradus) apoi merge sa intru in el si daca scrie Vehicul Deblocat tot merge sa intru in el ce trebuie sa adaug?

Uite aici comanda:

[pawn]else if(strcmp(x_nr,"lock",true) == 0)

        {

                new keycar = PlayerInfo[playerid][pPcarkey];

                if(keycar != 9999)

                {

                    new Float:X,Float:Y,Float:Z;

                    GetVehiclePos(keycar,X,Y,Z);

if(IsPlayerInRangeOfPoint(playerid, 25,X,Y,Z))

{

                    new locked[128];

                    locked = strtok(cmdtext, idx);

                    if(CarInfo[keycar][cLock] == 1)

                    {

format(string, sizeof(string), "~w~Vehicul~n~~g~Deblocat");

GameTextForPlayer(playerid, string, 4000, 3);

CarInfo[keycar][cLock] = 0;

OnPropUpdate(4,keycar);

return 1;

}

else if(CarInfo[keycar][cLock] == 0)

{

format(string, sizeof(string), "~w~Vehicul~n~~r~Blocat");

GameTextForPlayer(playerid, string, 4000, 3);

CarInfo[keycar][cLock] = 1;

OnPropUpdate(4,keycar);

return 1;

}

}[/pawn]

Raven's Roleplay translated percent

button.php?barPosition=20&leftFill=%2300FF33

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.