Jump to content
  • 0

pomoc Spamování Chatu nwm čim to je xD


AvestX

Dotaz

Čus, neska sem si udělal autoprodejnu, a dal sem tam že mu to auta vrátí jo vrátí xD ale napíše to do chatu 50000000x že to bylo obnoveno xD.


Kod na SetTimer:

 

SetTimer("RestartAutobazar",300000,0);

 

Kod na publick:

 

public RestartAutobazar()

{

for (new i=0;i

{

SendClientMessageToAll(cervena, "[ DODÁVKY ]: Do autobazaru byli přivezeny noví auta !");

autokus = 0;

autax[0] = 0; autax[1] = 0; autax[2] = 0; autax[3] = 0;

auta[0] = AddStaticVehicle(402,2135.8743,-1147.9678,24.3116,230.4632,22,22);

auta[1] = AddStaticVehicle(404,2136.3496,-1143.6273,24.6917,222.8368,123,92);

auta[2] = AddStaticVehicle(405,2136.6992,-1139.7252,25.2631,222.1209,11,1);

auta[3] = AddStaticVehicle(409,2119.9473,-1135.7831,25.0021,172.0109,1,1);

}

}

 

Děkuji za každou pomoc xDDD.

P.S.: už sem dlouho neměl help :lol::d

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

zkus premejslet.....mas cyklus...kterej se opakuje dokud je "i" mensi nez 500...takze to pokazdy odesle vsem zpravu...kdyby si tam misto SCMTA dal SCM...a dal by si tam pro hrace "i" tak to jde normalne ;)

Link to comment
Share on other sites

  • 0

public RestartAutobazar()

{

for (new i=0;i

{

SendClientMessage(i, COLOR_RED, "auta boly respawnovane");

autokus = 0;

autax[0] = 0; autax[1] = 0; autax[2] = 0; autax[3] = 0;

auta[0] = AddStaticVehicle(402,2135.8743,-1147.9678,24.3116,230.4632,22,22);

auta[1] = AddStaticVehicle(404,2136.3496,-1143.6273,24.6917,222.8368,123,92);

auta[2] = AddStaticVehicle(405,2136.6992,-1139.7252,25.2631,222.1209,11,1);

auta[3] = AddStaticVehicle(409,2119.9473,-1135.7831,25.0021,172.0109,1,1);

}

}

 

skus

 

EDIT: predbehly ma :( xD

Link to comment
Share on other sites

  • 0

Takže takhle by to šlo ? xD

 

public RestartAutobazar()

{

autax[0] = 0; autax[1] = 0; autax[2] = 0; autax[3] = 0;

auta[0] = AddStaticVehicle(402,2135.8743,-1147.9678,24.3116,230.4632,22,22);

auta[1] = AddStaticVehicle(404,2136.3496,-1143.6273,24.6917,222.8368,123,92);

auta[2] = AddStaticVehicle(405,2136.6992,-1139.7252,25.2631,222.1209,11,1);

auta[3] = AddStaticVehicle(409,2119.9473,-1135.7831,25.0021,172.0109,1,1);

for (new i=0;i

{

SendClientMessage(i,cervena, "[ DODÁVKY ]: Do autobazaru byli přivezeny noví auta !");

autokus = 0;

}

}

 

Link to comment
Share on other sites

  • 0

jj...ale lepsi je to takhle:

 

public RestartAutobazar()
{
autax[0] = 0; autax[1] = 0; autax[2] = 0; autax[3] = 0;
auta[0] = AddStaticVehicle(402,2135.8743,-1147.9678,24.3116,230.4632,22,22);
auta[1] = AddStaticVehicle(404,2136.3496,-1143.6273,24.6917,222.8368,123,92);
auta[2] = AddStaticVehicle(405,2136.6992,-1139.7252,25.2631,222.1209,11,1);
auta[3] = AddStaticVehicle(409,2119.9473,-1135.7831,25.0021,172.0109,1,1);
for (new i=0;i{
if(IsPlayerConnected(i))
{
SendClientMessage(i,cervena, "[ DODÁVKY ]: Do autobazaru byli přivezeny noví auta !");
autokus[i] = 0;
}
}
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...