Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Cum fac pe gm-ul burned sa se ataseze remorca automat daca nu este atasata la jobul trucker? Am incercat cateva metode dar nu merge..Va rog. Multumesc.

6 answers to this question

Recommended Posts

  • 0
Posted

Mutat la categoria corespunzatoare, data viitoare ai grija unde postezi,

Posteaza codul sursa la ce ai incercat sa te ajutam daca nu incerci nimic noi nu dam mura in gura

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Posted

incearca asta

CMD:testtrailer(playerid,params[]) {
    if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && Trailer[playerid] == 0) return SCM(playerid,-1,"Nu ai o remorca!");
    SetTimerEx("AttachTrailer", 1000, 0, "i", playerid); 
    return true; }

  • 0
Posted
31 minutes ago, MiritaXD said:

incearca asta

 


CMD:testtrailer(playerid,params[]) {
    if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && Trailer[playerid] == 0) return SCM(playerid,-1,"Nu ai o remorca!");
    SetTimerEx("AttachTrailer", 1000, 0, "i", playerid); 
    return true; }

 

da frate dar vreau cum era inainte pe ruby sa se ataseze automat fara sa dau o comanda ceva

  • 0
Posted
Acum 9 minute, CosminZEQ a spus:

https://pastebin.com/9crfPGeq

jos acolo am incercat ceva

Nu are rost acea verifocare de jos deoarece niciodata cand jucatorul va raspunde la acel dialog nu va avea remorca atasata plus ca deja e aplet ci 2 randuri mai sus timerul. Cum era pe ruby inainte nu e tocmai ok pt ca trebuie sa verifici in timerul de 1 secunda daca remorca e atasata si daca nu sa o atasezi. Daca faci asa nu e optim dasta a fost scos si de pe ruby

  • 0
Posted
public OnPlayerEnterCheckpoint(..)
{
if(cp=cp[pid]){
if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) AttachTrailerToVehicle(TrailerID[playerid], GetPlayerVehicleID(playerid));
return true;
}

....

PS: Daca deja ai un timer global care controleaza jucatorii la <= 1.5s atunci poti adauga acolo codul ...

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.