Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: FREESTLYE_WILSON on December 25, 2010, 10:23:54 AM

Title: here help me
Post by: FREESTLYE_WILSON on December 25, 2010, 10:23:54 AM
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.....
Title: Re: here help me
Post by: shivambansal on January 07, 2011, 06:20:54 AM
 ??? ??? ???
Title: Re: here help me
Post by: Terminatorupgrade 2 on January 07, 2011, 10:55:13 AM
ya wilson use GUPS :P
Title: Re: here help me
Post by: yazeen on February 13, 2011, 05: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
Title: Re: here help me
Post by: BIG[H] on February 13, 2011, 06:06:56 PM
Quoteelse 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

   
Quoteelse 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;
Title: Re: here help me
Post by: yazeen on February 14, 2011, 01: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)
Title: Re: here help me
Post by: Aldo on February 14, 2011, 02:11:37 PM
Quote from: yazeen on February 14, 2011, 01: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)

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)
Title: Re: here help me
Post by: yazeen on March 24, 2011, 02:44:24 PM
Quote from: Aldo on February 14, 2011, 02:11:37 PM
Quote from: yazeen on February 14, 2011, 01: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)

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???
Title: Re: here help me
Post by: Aldo on March 24, 2011, 04:26:25 PM
Quote from: yazeen on March 24, 2011, 02:44:24 PM
Quote from: Aldo on February 14, 2011, 02:11:37 PM
Quote from: yazeen on February 14, 2011, 01: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)

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