- 0
Problema comanda /v lock
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
friezakinght
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
0 answers to this question
Recommended Posts