Szerző Téma: /kick nem rconosan...  (Megtekintve 962 alkalommal)

/kick nem rconosan...
« Dátum: 2011. Május 10. - 20:06:44 »
0 Show voters
Nah a téma címe szerintem egyértelmû de:
Meg lehet oldani(És ha igen akkor hogy)azt hogy a  kick és /ban parancsot ne csak az rcon admin tudja használni!

Nem elérhető Mambo

  • 4239
    • Profil megtekintése
/kick nem rconosan...
« Válasz #1 Dátum: 2011. Május 10. - 20:08:38 »
0 Show voters
angol fórumon találtam.
[pawn]if(strcmp(cmd, \"/kick\", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
     tmp = strtok(cmdtext, idx);
      if(!strlen(tmp))
      {
         SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: /kick [playerid/PartOfName] [reason]\");
         return 1;
      }
      giveplayerid = ReturnUser(tmp);
      {
         if(IsPlayerConnected(giveplayerid))
         {
           if(giveplayerid != INVALID_PLAYER_ID)
           {
              GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
               GetPlayerNameEx(playerid, sendername, sizeof(sendername));
               new length = strlen(cmdtext);
               while ((idx < length) && (cmdtext[idx] <= \' \'))
               {
                  idx++;
               }
               new offset = idx;
               new result[64];
               while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
               {
                  result[idx - offset] = cmdtext[idx];
                  idx++;
               }
               result[idx - offset] = EOS;
               if(!strlen(result))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: /kick [playerid/PartOfName] [reason]\");
                  return 1;
               }
               format(string, sizeof(string), \"AdmCmd: %s was kicked by %s, reason: %s (%d-%d-%d)\", giveplayer, sendername, (result),month,day,year);
               format(string, sizeof(string), \"AdmCmd: %s was kicked by %s, reason: %s.\", giveplayer, sendername, (result),month,day,year);
               SendClientMessageToAll(COLOR_LIGHTRED, string);
               Kick(giveplayerid);
               return 1;
            }
         }
      }
      else
      {
         format(string, sizeof(string), \"  %d is not an active player.\", giveplayerid);
         SendClientMessage(playerid, COLOR_GRAD1, string);
      }
   }
   return 1;
}[/pawn]

/kick nem rconosan...
« Válasz #2 Dátum: 2011. Május 10. - 20:11:14 »
0 Show voters
vedd ki a base filterscriptet:D

Nem elérhető a]X[e

  • 538
    • Profil megtekintése
/kick nem rconosan...
« Válasz #3 Dátum: 2011. Május 10. - 20:11:53 »
0 Show voters
De ezt a sima játékos is tudja használni, nem?

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
/kick nem rconosan...
« Válasz #4 Dátum: 2011. Május 10. - 20:12:02 »
0 Show voters
A kick és ban parancsot mióta tudja csak Rcon használni??

/kick nem rconosan...
« Válasz #5 Dátum: 2011. Május 10. - 20:14:02 »
0 Show voters
>\" post=\"136928\" timestamp=\"1305051122\"]
A kick és ban parancsot mióta tudja csak Rcon használni??
 
[/quote]
Nálam most így van....

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
/kick nem rconosan...
« Válasz #6 Dátum: 2011. Május 10. - 20:14:40 »
0 Show voters
Idézetet írta: doni3219 date=1305051242\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"8078\" data-ipsquote-contentclass=\"forums_Topic

> link=topic=12026.msg136928#msg136928 date=1305051122]
A kick és ban parancsot mióta tudja csak Rcon használni??
 
Nálam most így van....
 
[/quote]
Hogy-hogy?  ;D

/kick nem rconosan...
« Válasz #7 Dátum: 2011. Május 10. - 20:15:47 »
0 Show voters
NemtomxD
 
Idézetet írta: bence19961 date=1305051074\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"8078\" data-ipsquote-contentclass=\"forums_Topic
vedd ki a base filterscriptet:D
 


angol fórumon találtam.
[pawn]if(strcmp(cmd, \"/kick\", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
     tmp = strtok(cmdtext, idx);
      if(!strlen(tmp))
      {
         SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: /kick [playerid/PartOfName] [reason]\");
         return 1;
      }
      giveplayerid = ReturnUser(tmp);
      {
         if(IsPlayerConnected(giveplayerid))
         {
           if(giveplayerid != INVALID_PLAYER_ID)
           {
              GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
               GetPlayerNameEx(playerid, sendername, sizeof(sendername));
               new length = strlen(cmdtext);
               while ((idx < length) && (cmdtext[idx] <= \' \'))
               {
                  idx++;
               }
               new offset = idx;
               new result[64];
               while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
               {
                  result[idx - offset] = cmdtext[idx];
                  idx++;
               }
               result[idx - offset] = EOS;
               if(!strlen(result))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: /kick [playerid/PartOfName] [reason]\");
                  return 1;
               }
               format(string, sizeof(string), \"AdmCmd: %s was kicked by %s, reason: %s (%d-%d-%d)\", giveplayer, sendername, (result),month,day,year);
               format(string, sizeof(string), \"AdmCmd: %s was kicked by %s, reason: %s.\", giveplayer, sendername, (result),month,day,year);
               SendClientMessageToAll(COLOR_LIGHTRED, string);
               Kick(giveplayerid);
               return 1;
            }
         }
      }
      else
      {
         format(string, sizeof(string), \"  %d is not an active player.\", giveplayerid);
         SendClientMessage(playerid, COLOR_GRAD1, string);
      }
   }
   return 1;
}[/pawn]
 
[/quote]
Köszönöm!Már megy is :D :D :D

Nem elérhető a]X[e

  • 538
    • Profil megtekintése
/kick nem rconosan...
« Válasz #8 Dátum: 2011. Május 10. - 20:16:14 »
0 Show voters
Milyen admin scrip-et használsz?

/kick nem rconosan...
« Válasz #9 Dátum: 2011. Május 10. - 20:18:51 »
0 Show voters
Megoldva ;D ;D ;D ;D :D :D :D :D :D :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal