Jump to content
  • 0

Problema Tow


alex4x

Question

Am aceasta comanda:

//-------------------------------------------------------------------------------------------------

if(strcmp(cmd, "/towpark", true) == 0)

{

if(IsPlayerConnected(playerid))

{

new Float:x,Float:y,Float:z;

new Float:a;

new carid;

carid = GetPlayerVehicleID(playerid);

GetPlayerName(playerid, playername, sizeof(playername));

GetVehiclePos(carid, x, y, z);

// GetPlayerFacingAngle(playerid, a);

GetVehicleZAngle(carid, a);

if((PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11))

{

                PlayerInfo[playerid][pTowc] = 1;

        AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));

CarInfo[carid][cLocationx] = x;

CarInfo[carid][cLocationy] = y;

CarInfo[carid][cLocationz] = z;

CarInfo[carid][cAngle] = a;

format(string, sizeof(string), "~n~ Tocmai ati parcat masina in centrul TCC ~n~");

GameTextForPlayer(playerid, "Pretul eliberarii costa: 10.000$", 10000, 3);

OnPropUpdate();

OnPlayerUpdate(playerid);

    DestroyVehicle(carid);

    CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);

    return 1;

}

else

{

    SendClientMessage(playerid, COLOR_GREY, " Nu facetii parte din factiunea Tow Car Company");

    return 1;

}

}

return 1;

}

Si as dorii sa fac , cand dau /towpark --> sa se parcheze masina din sufa...de la /tow va rog ajutati'ma!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Foloseste Y_INI .... pentru a salva coordonatele daca vrei sa parchezi masina si sa ramana chiar si atunci cand inchizi sv... poti folosi si dini sau altele dar e recomandat y_ini

Nu-ti fac eu comanda pentru ca asta ar insemna sa-ti dau mura in gura

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

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.