GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Szkript kérések => A témát indította: Swat - 2012. Február 03. - 13:22:46

Cím: /time parancs
Írta: Swat - 2012. Február 03. - 13:22:46
hello all
szeretnék kérni egy oylan parancsot h pl beirom /time 10 és 10 ora lesz elõreis köszi :D
Cím: /time parancs
Írta: xTomiX - 2012. Február 03. - 13:32:46
[pawn]if (strcmp(\"/time\", cmdtext, true, 10) == 0)
{
   SetPlayerTime(playerid,10,0);
   return 1;
}[/pawn]
Cím: /time parancs
Írta: Swat - 2012. Február 03. - 13:39:47
nem iylen hanem beirom h /time órát
Cím: /time parancs
Írta: Ezel - 2012. Február 03. - 13:41:36
[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!
Cím: /time parancs
Írta: Swat - 2012. Február 03. - 14:17:35
de olyan kell h sima playerek hazsnálhaszák
Cím: /time parancs
Írta: Ezel - 2012. Február 03. - 14:27:55
[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 :)
Cím: /time parancs
Írta: KDDomi - 2012. Február 03. - 15:45:01
Nembiztos hogy jó:
 
if(strcmp(cmd, \"/time\", true) == 0)
{
SetPlayerTime(playerid, cmd);
SendClientMessage(playerid, -1, \"Sikeresen átálitottad az órád: %d-re\", cmd);
}
Cím: /time parancs
Írta: Flash - 2012. Február 03. - 15:52:40
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!