Jump to content
  • 0

Cum as putea face?


Bogdan's

Question

Problema intalnita (descriere): Salut,m-am gandit la o idee unica spun eu si anume ''Pune jucatorul in portbagaj'' Anume,cand X scrie /trunk putplayer 0 sa il puna pe id 0 in portbagaj daca e langa el.Dar doar sa accepte cel care i-a pus ID-ul....

Cum as putea sa fac acest sistem? Am gasit asta si nu stiu cum sa fac comanda:
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu)

stock GetXYBehindVehicle(vehicleid, &Float:x2, &Float:y2, Float:distance)
{
    new Float:a;
    GetVehiclePos(vehicleid, x2, y2, a);
    GetVehicleZAngle(vehicleid, a);
    x2 += (distance * floatsin(-a+180, degrees));
    y2 += (distance * floatcos(-a+180, degrees));
}
stock GetTrunkPos(vehicleid, &Float: x3, &Float:y3, &Float:z3)
{
    new Float: x, Float: y;
    new Float: sizeX, Float: sizeY, Float:sizeZ[2];    
    GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZE, sizeX, sizeY, sizeZ[0]);    
    GetXYBehindVehicle(vehicleid, x, y, sizeY/2);
    x3 = x;
    y3 = y;    
    GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_REAR_BUMPER_Z , sizeX, sizeY, sizeZ[1]);
    z3 = (sizeZ[1] + sizeZ[0]/2);
}

Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da din surse..

http://forum.sa-mp.com/showpost.php?p=1957918&postcount=7

http://forum.sa-mp.com/showthread.php?t=413618

http://forum.sa-mp.com/showthread.php?t=453546&page=2

Edited by Bogdan's
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Ai putea incerca sa folosesti SetPlayerCameraPos si SetPlayerCameraLookAt

Pui jucatorul din portbagaj sa se uite la coordonatele masinii, care le actualizezi din secunda in seunda cred ca ajunge.. desi nu stiu cat de eficient e..

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

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.