Szerző Téma: /time parancs  (Megtekintve 1645 alkalommal)

Dj.BL3ND

  • Vendég
/time parancs
« Dátum: 2012. Március 03. - 07:18:58 »
+1 Show voters
hello all unatkoztam ezért irtam egy /Time parancsot ZCMD_vel van irva
Parancs:
 
CMD:time(playerid,params[])
{
new time;
if(sscanf(params,\"i\",time))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /time >Idõérték<\");
SetPlayerTime(playerid,time);
return 1;
}
« Utoljára szerkesztve: 2012. Március 03. - 11:16:58 írta Norby »

/time parancs
« Válasz #1 Dátum: 2012. Március 03. - 08:24:05 »
0 Show voters
És ha mondjuk 400-at írok be? :D:D:D

/time parancs
« Válasz #2 Dátum: 2012. Március 03. - 08:55:40 »
0 Show voters
SetPlayerWeather(playerid,time); 

   ????
Ha Idõ  Akkor nem SetPlayerTime??
 
CMD:time(playerid,params[])
{
new time;
if(sscanf(params,\"i\",time))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /time >Idõérték<\");
SetPlayerTime(playerid,time);
return 1;
}

 
Ez igy lenne Jó
« Utoljára szerkesztve: 2012. Március 03. - 09:03:20 írta Szabyxxx »

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/time parancs
« Válasz #3 Dátum: 2012. Március 03. - 09:04:15 »
0 Show voters
Ez igy lenne Jó[/quote]
Helyesbítek:
SetPlayerWeather(playerid, time, time);

/time parancs
« Válasz #4 Dátum: 2012. Március 03. - 09:08:36 »
0 Show voters
De õ ezt idõ scriptnek nevezi akkor miért nem idõjárás
Time = Idõ
Weather  = Idõjárás....

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/time parancs
« Válasz #5 Dátum: 2012. Március 03. - 09:13:03 »
0 Show voters
Elírtam.. xd
 
CMD:time(playerid,params[])
{
new time;
if(sscanf(params,\"i\",time))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /time >Idõérték<\");
if(time < 0 || time > 24) return SendClientMessage(playerid, 0xbbff00aa, \"0-24\");
SetPlayerTime(playerid,time, time);
return 1;
}

Dj.BL3ND

  • Vendég
/time parancs
« Válasz #6 Dátum: 2012. Március 03. - 09:15:53 »
0 Show voters
bocsi elirtam javitottam

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/time parancs
« Válasz #7 Dátum: 2012. Március 03. - 09:34:37 »
0 Show voters
Javítva?
Te ezt írtad:
SetPlayerTime(playerid,time);
Pedig így a jó:
SetPlayerTime(playerid,time, time);
+ ha tíltani akarsz:
CMD:time(playerid,params[])
{
new time;
if(sscanf(params,\"i\",time))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /time >Idõérték<\");
if(time < 0 || time > 24) return SendClientMessage(playerid, 0xbbff00aa, \"0-24\");
SetPlayerTime(playerid,time, time);
return 1;
}

Dj.BL3ND

  • Vendég
/time parancs
« Válasz #8 Dátum: 2012. Március 03. - 10:17:58 »
0 Show voters
ja bocsi nem figyeltem xÐ

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
/time parancs
« Válasz #9 Dátum: 2012. Március 03. - 10:31:47 »
0 Show voters
Így még jobb szerintem.
 

CMD:time(playerid,params[])
{
   new time;
   if(sscanf(params,\"i\",time))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /time >Idõérték<\");
   if(time < 0 || time > 24) return SendClientMessage(playerid, 0xbbff00aa, \"0-24\");
   SetPlayerTime(playerid,time, 0);
   return 1;
}

Nem elérhető Dead

  • 2045
    • Profil megtekintése
/time parancs
« Válasz #10 Dátum: 2012. Március 03. - 20:18:29 »
0 Show voters
nem javítsa ki XD
ennek így semmi értelme ha pl egy kezdõ akarja használni ...
amit Cannonn írt az lesz a helyes :)

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/time parancs
« Válasz #11 Dátum: 2012. Március 03. - 22:58:50 »
0 Show voters
Mért amit én írtam, az mért nem jó? :O

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
/time parancs
« Válasz #12 Dátum: 2012. Március 03. - 23:57:46 »
0 Show voters
A tiéd is jó. Csak éppen, ha beírod, hogy /time 1 akkor 01:01 lesz az idõ.
Megcsináltam óra:percesre.
 

CMD:time(playerid,params[])
{
   new ora,perc,masodperc;
   if(sscanf(params,\"ii\",ora,perc))SendClientMessage(playerid,0xff0000AA,\"Használat: /time >óra< >perc<\");
   if(ora > 0 && ora <= 24 && perc > 0 && perc <= 60)
   {
   SetPlayerTime(playerid, ora, perc,masodperc);
   }
   else
   {
   SendClientMessage(playerid,0xff0000AA,\"Érvénytelen idõ.\");
   }
   return 1;
}
« Utoljára szerkesztve: 2012. Március 12. - 21:25:21 írta Cannonn »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal