AvestX 5 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Č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 Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 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 More sharing options...
0 Guest Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 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 More sharing options...
0 Om3n 78 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 jaky bych to pred chvilkou nerekl co? Link to comment Share on other sites More sharing options...
0 Domik234 0 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Tak to nestihl a navic se snažil třeba bych to stihl i já ale když píšeš nevidíš co napíše druhý a není automaticky obnoveni stranky po 5 sekundach Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 ale kdyz te nekdo predbehne tak se ti to zobrazi s tim dotazem jestli to chces fakt odeslat Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 17. Listopad, 2009 Author Share Odesláno: 17. Listopad, 2009 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 More sharing options...
0 Om3n 78 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 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 More sharing options...
0 AvestX 5 Odesláno: 17. Listopad, 2009 Author Share Odesláno: 17. Listopad, 2009 Jj už sem si to dal xD díky můžete locknout xD. Link to comment Share on other sites More sharing options...
Dotaz
AvestX 5
Č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
Link to comment
Share on other sites
8 odpovědí na tuto otázku
Recommended Posts