Author Topic: here help me  (Read 4589 times)

0 Members and 2 Guests are viewing this topic.

Offline FREESTLYE_WILSON

  • Street Thug
  • *
  • Posts: 8
    • View Profile
here help me
« on: December 25, 2010, 12:23:54 pm »
can any one tell me i get admincmds like this

/c kick reason
/c slap reason
/c mute reason
/c tban
/c ban
/c subban
etc.....

Offline shivambansal

  • Wiseguy
  • **
  • Posts: 52
  • VC:MP Beta Tester
    • View Profile
Re: here help me
« Reply #1 on: January 07, 2011, 08:20:54 am »
 ??? ??? ???

Offline Terminatorupgrade 2

  • Wiseguy
  • **
  • Posts: 91
  • pawno scripter
    • View Profile
Re: here help me
« Reply #2 on: January 07, 2011, 12:55:13 pm »
ya wilson use GUPS :P

yazeen

  • Guest
Re: here help me
« Reply #3 on: February 13, 2011, 07:23:20 pm »
here how to add kick

}
   else if (strcmp(cmd, "kick", true) == 0) {
      new reason[256], plr, szMsg[256];
      tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         Kick(plr);
      }
      return 1;


anyone can kick in this lol i dont know how to set it for admin

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: here help me
« Reply #4 on: February 13, 2011, 08:06:56 pm »
Quote
   else if (strcmp(cmd, "kick", true) == 0) {
      new reason[256], plr, szMsg[256];
      tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         Kick(plr);
      }
      return 1;

Only Rcon Admin can kick

   
Quote
else if (strcmp(cmd, "kick", true) == 0) {
      new reason[256], plr, szMsg[256];
      tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if(!IsPlayerAdmin(playerid) SendClientMessage(playerid,COLOR_RED,"You are not Rcon Admin");
      else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         Kick(plr);
      }
      return 1;
Outdoor city server Administrator, FS server owner!

yazeen

  • Guest
Re: here help me
« Reply #5 on: February 14, 2011, 03:40:40 pm »
LOL if u mean /c tban is temporary ban there is no such thing just ban and after the time to unban just remove the banned name from the 'banlist' file. i dont know subnet ban and its to hard ask shadow or aXXo  ill help you with slap here is code


   }
   else if (strcmp(cmd, "slap", true) == 0) {
      new reason[256], snick[256], plr, health[256], szMsg[256];
      tmp = strtok(cmdtext, idx),snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick), health = strtok(cmdtext, idx);
      else if (!strlen(health)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c slap [Nick/ID] [health] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s slapped: %s's hp to :[ %d% ]",gPlayers[playerid],gPlayers[plr],strval(health,cmdtext[strlen(tmp)+6]));
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         SetPlayerHealth(plr,strval(health));
      }
      return 1;


did this without compiling so if u find error plse say to me  ::) 8)

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: here help me
« Reply #6 on: February 14, 2011, 04:11:37 pm »
LOL if u mean /c tban is temporary ban there is no such thing just ban and after the time to unban just remove the banned name from the 'banlist' file. i dont know subnet ban and its to hard ask shadow or aXXo  ill help you with slap here is code


   }
   else if (strcmp(cmd, "slap", true) == 0) {
      new reason[256], snick[256], plr, health[256], szMsg[256];
      tmp = strtok(cmdtext, idx),snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick), health = strtok(cmdtext, idx);
      else if (!strlen(health)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c slap [Nick/ID] [health] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s slapped: %s's hp to :[ %d% ]",gPlayers[playerid],gPlayers[plr],strval(health,cmdtext[strlen(tmp)+6]));
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         SetPlayerHealth(plr,strval(health));
      }
      return 1;


did this without compiling so if u find error plse say to me  ::) 8)

There is tempban command and it has to be custom made

aXXo and me are the only ones with those commands as I know (Pawno)

yazeen

  • Guest
Re: here help me
« Reply #7 on: March 24, 2011, 04:44:24 pm »
LOL if u mean /c tban is temporary ban there is no such thing just ban and after the time to unban just remove the banned name from the 'banlist' file. i dont know subnet ban and its to hard ask shadow or aXXo  ill help you with slap here is code


   }
   else if (strcmp(cmd, "slap", true) == 0) {
      new reason[256], snick[256], plr, health[256], szMsg[256];
      tmp = strtok(cmdtext, idx),snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick), health = strtok(cmdtext, idx);
      else if (!strlen(health)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c slap [Nick/ID] [health] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s slapped: %s's hp to :[ %d% ]",gPlayers[playerid],gPlayers[plr],strval(health,cmdtext[strlen(tmp)+6]));
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         SetPlayerHealth(plr,strval(health));
      }
      return 1;


did this without compiling so if u find error plse say to me  ::) 8)

There is tempban command and it has to be custom made

aXXo and me are the only ones with those commands as I know (Pawno)

U use setdate settime etc???

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: here help me
« Reply #8 on: March 24, 2011, 06:26:25 pm »
LOL if u mean /c tban is temporary ban there is no such thing just ban and after the time to unban just remove the banned name from the 'banlist' file. i dont know subnet ban and its to hard ask shadow or aXXo  ill help you with slap here is code


   }
   else if (strcmp(cmd, "slap", true) == 0) {
      new reason[256], snick[256], plr, health[256], szMsg[256];
      tmp = strtok(cmdtext, idx),snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick), health = strtok(cmdtext, idx);
      else if (!strlen(health)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c slap [Nick/ID] [health] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s slapped: %s's hp to :[ %d% ]",gPlayers[playerid],gPlayers[plr],strval(health,cmdtext[strlen(tmp)+6]));
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         SetPlayerHealth(plr,strval(health));
      }
      return 1;


did this without compiling so if u find error plse say to me  ::) 8)

There is tempban command and it has to be custom made

aXXo and me are the only ones with those commands as I know (Pawno)

U use setdate settime etc???

Yea and its complex
It takes up a total of 187 lines of script