Jump to content
  • 0

pomoc Admin Car


Lukes_CZ

Dotaz

Ahoj,

Mám problém s AC scriptem (admin auto)

Když si na serveru spawnu /ac tak je vše cajk.. ale když z něho vystoupím a nastoupím do jiného auta který je na serveru, a dám /acd (smaže ac) tak to ac zůstane ale hláška že jsem smazal auto se normálně napíše. stejný je to aj když se odpojím a zase připojím. auto je na stejným místě kde jsem vystoupil.

 

Budu rád za každou radu či pomoc!

 

zde je script:

Vyřešeno

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

pozerám že to chceš len max. jedno to "ac" pre jedného hráča, pokial ano tak takto postupuj:

new ac[MAX_PLAYERS];
//potom používaj
ac[playerid] = CreateVehicle(...);
DestroyVehicle(ac[playerid]);
//furt k ac pridávaj [playerid]

Link to comment
Share on other sites

  • 0

Toto

 

public OnPlayerDisconnect(playerid, reason)

{

if(acs[playerid] == 1)

DestroyVehicle(ac);

ac = 0;

Delete3DTextLabel(texticek);

return 1;

}

 

 

Zmen na toto

 

 

 

public OnPlayerDisconnect(playerid, reason)

{

if(acs[playerid] == 1)

DestroyVehicle(ac[playerid]);

ac = 0;

Delete3DTextLabel(texticek);

return 1;

}

 

 

Takto to bude MOZNO fungovat

Link to comment
Share on other sites

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