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

Swat

  • Vendég
/time parancs
« Dátum: 2012. Február 03. - 13:22:46 »
0 Show voters
hello all
szeretnék kérni egy oylan parancsot h pl beirom /time 10 és 10 ora lesz elõreis köszi :D

xTomiX

  • Vendég
/time parancs
« Válasz #1 Dátum: 2012. Február 03. - 13:32:46 »
0 Show voters
[pawn]if (strcmp(\"/time\", cmdtext, true, 10) == 0)
{
   SetPlayerTime(playerid,10,0);
   return 1;
}[/pawn]

Swat

  • Vendég
/time parancs
« Válasz #2 Dátum: 2012. Február 03. - 13:39:47 »
0 Show voters
nem iylen hanem beirom h /time órát

Nem elérhető Ezel

  • 177
    • Profil megtekintése
/time parancs
« Válasz #3 Dátum: 2012. Február 03. - 13:41:36 »
0 Show voters
[pawn]if(strcmp(cmd, \"/idõbeállítás\", true) == 0)//Ezt a parancsot átírhatod!
{
        if(IsPlayerAdmin(playerid))//Csak Rcon admin használhatja
 { 
       tmp = strtok(cmdtext, idx);
       new ido = strval(tmp);
       SetPlayerVirtualWorld(playerid,ido,0);//Az órát fogod elváltoztatni tegyük fel 12órára a perc az 0 marad.
       return 1;
   }
}[/pawn]
Tessék parancsolj!

Swat

  • Vendég
/time parancs
« Válasz #4 Dátum: 2012. Február 03. - 14:17:35 »
0 Show voters
de olyan kell h sima playerek hazsnálhaszák

Nem elérhető Ezel

  • 177
    • Profil megtekintése
/time parancs
« Válasz #5 Dátum: 2012. Február 03. - 14:27:55 »
0 Show voters
[pawn]if(strcmp(cmd, \"/idõbeállítás\", true) == 0)//Ezt a parancsot átírhatod!

         tmp = strtok(cmdtext, idx);
         new ido = strval(tmp);
 SetPlayerVirtualWorld(playerid,ido,0);//Az órát fogod elváltoztatni tegyük fel 12órára a perc az 0 marad.
         return 1;
}[/pawn]
Na parancsolj :) Ha segítettem like :)

Nem elérhető KDDomi

  • 976
    • Profil megtekintése
/time parancs
« Válasz #6 Dátum: 2012. Február 03. - 15:45:01 »
0 Show voters
Nembiztos hogy jó:
 
if(strcmp(cmd, \"/time\", true) == 0)
{
SetPlayerTime(playerid, cmd);
SendClientMessage(playerid, -1, \"Sikeresen átálitottad az órád: %d-re\", cmd);
}

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/time parancs
« Válasz #7 Dátum: 2012. Február 03. - 15:52:40 »
0 Show voters
if(strcmp(cmd, \"/time\", true) == 0)
{
new string[8];
if(sscanf(params, \"us[8]\", string)) return SendClientMessage(playerid, yellow2, \"Használd: /ido [0-24]\");
new TimeID;
TimeID = strval(params);
if(TimeID < 0 || TimeID > 24)
{
SendClientMessage(playerid, red, \"Ismeretlen idõt adtál meg! {A9C4E4}0-24 {E60000}között van!\");
}
else
{
SetPlayerTime(playerid, TimeID, TimeID);
}
return 1;
}

 
TESZTELVE, MÛKÖDIK!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal