Szerző Téma: /readcmds  (Megtekintve 1301 alkalommal)

/readcmds
« Dátum: 2012. Március 14. - 15:30:31 »
+1 Show voters
helló
kellene nekem egy olyan script hogy beírom hogy /readcmds és akk kiírja az adminoknak a chatba hogy ki milyen parancsot használ
elõre is köszönöm
« Utoljára szerkesztve: 2012. Március 14. - 17:08:40 írta $$David$$ »

/readcmds
« Válasz #1 Dátum: 2012. Március 14. - 15:38:50 »
0 Show voters
könnyû lehet dialogogs is???kérlek

Nem elérhető BoSS

  • 816
    • Profil megtekintése
/readcmds
« Válasz #2 Dátum: 2012. Március 17. - 12:58:31 »
0 Show voters
Szia nem tudom így jó-e ladminba így van
[pawn]              if(ServerInfo[ReadCmds] == 1)
              {
                      format(string, sizeof(string), \"*** %s (%d) parancsot használt: %s\", pName(playerid),playerid,cmdtext);
                      for(new i = 0; i < MAX_PLAYERS; i++) {
                              if(IsPlayerConnected(i)) {
                                      if( (PlayerInfo[Level] > PlayerInfo[playerid][Level]) && (PlayerInfo[Level] > 1) && (i != playerid) ) {

                                              SendClientMessage(i, grey, string);


                                      }


                              }


                      }


              }[/pawn]


       

/readcmds
« Válasz #3 Dátum: 2012. Március 17. - 14:47:30 »
+1 Show voters
nekem kéne az egész parancsal együtt

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
/readcmds
« Válasz #4 Dátum: 2012. Március 17. - 15:04:30 »
0 Show voters
zcmd-vel vagy sima parancsal kell meg,hogy Rcon admin használhassa vagy milyen admin?
Ezt ird le és megirom neked.

Dupla hozzászólás automatikusan összefûzve. ( 2012. Március 17. - 15:18:24 )

Most össze dobtam akkor
Parancs: /bubu (EZt átirhatod :D)
Ha beirod /bubu onnantol látod,hogy ki mit ir
A /bubuki vel kikapcsolod az egészet.
Csak rcon admin használhassa
KÉszítette: Én JaCk
Azért lett bubu minden mert olyan bubus kedvenm volt xD
 
// /By Jack
#include <a_samp>
 
#define piros (0xFF0000AA)
#define BUBU_ENGED 1
#define BUBU_TILT 0
new bubu[MAX_PLAYERS];
 
public OnGameModeInit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
bubu[playerid] = BUBU_TILT;
return 1;
}
 
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/bubu\", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFF00AA,\"RCON adminnak csak!\");
bubu[playerid] = BUBU_ENGED;
SendClientMessage(playerid,piros,\"Most már látod ki milyen parancsot használ!\");
 
    return 1;
}
if (strcmp(\"/bubuki\", cmdtext, true, 10) == 0)
{
bubu[playerid] = BUBU_TILT;
SendClientMessage(playerid,piros,\"Most már NEM látod ki milyen parancsot használ!\");
return 1;
}
if(bubu[playerid] == BUBU_ENGED)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname, sizeof(pname));
new string[128];
format(string, sizeof(string), \"*** %s  parancsot használt: %s\", pname,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
}
}
return 0;
}
« Utoljára szerkesztve: 2012. Március 17. - 15:22:22 írta JaCk »

/readcmds
« Válasz #5 Dátum: 2012. Március 18. - 09:07:57 »
+1 Show voters
nem írja ki a parancsokat  :(

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
/readcmds
« Válasz #6 Dátum: 2012. Március 18. - 10:38:29 »
+1 Show voters
Megnéztem most igy
 
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFF00AA,\"RCON adminnak csak!\");
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname, sizeof(pname));
new string[128];
format(string, sizeof(string), \"*** %s  parancsot használt: %s\", pname,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
}
}

 
EZt csak illeszt be a mododba ne FS-be!!!
Azért nem irta ki a parncsot mert FS-be volt!
Ezt a mododba illeszt bele a OnPlayerCommandText alá.Valahova.
És igy jó lesz
Tesztelve
De ezt most csak Rcon admin használhassa

Dupla hozzászólás automatikusan összefûzve. ( 2012. Március 18. - 10:40:06 )

Ha ZCMD van a mododba akkor igy csináld ird valahova a mododba ezt
[pawn]public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
new sztring[128];
if(!success)
{
   format(sztring, sizeof(sztring),\"HIBA: \' %s \' parancs nem létezik!\", cmdtext);
   return SendClientMessage(playerid, 0xFF0000FF, sztring);
}
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFF00AA,\"RCON adminnak csak!\");
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname, sizeof(pname));
new string[128];
format(string, sizeof(string), \"*** %s  parancsot használt: %s\", pname,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
}
}
return 1;
}[/pawn]
« Utoljára szerkesztve: 2012. Március 18. - 10:40:06 írta JaCk »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal