Jump to content
  • 0

remorca trucker


CosminZEQ

Question

6 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

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; }

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0
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;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.