Author Topic: How to kick  (Read 14465 times)

0 Members and 1 Guest are viewing this topic.

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
How to kick
« on: April 24, 2011, 08:35:29 am »
I have started VC-MP Server With the help of Strike thanks to him i need to know how to kick and banned players.

i have Simple VC-MP Scripts rcon password i know where to enter rcon password,What si the commands to kick and banned

StriKe

  • Guest
Re: How to kick
« Reply #1 on: April 24, 2011, 08:41:19 am »
« Last Edit: April 24, 2011, 11:14:20 am by StriKe »

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: How to kick
« Reply #2 on: April 24, 2011, 08:43:30 am »
RCON COMMANDS:

/kick [playerid]
/ban [playerid]
/sethr [hour]
/setmin [minute]
/sethp [playerid] [health]
/setarm [playerid] [armour]
/setmon [playerid] [money]
/setwep [playerid] [weapon]
/setcon [playerid] [1/0] <= Set Player Controlable

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: How to kick
« Reply #3 on: April 24, 2011, 10:20:10 am »
thanks
hey problem !

What is the pass of admin and what is rcon and What is that Commadns Strike how to do
« Last Edit: April 24, 2011, 11:15:10 am by StriKe »

StriKe

  • Guest
Re: How to kick
« Reply #4 on: April 24, 2011, 10:42:38 am »
http://famp.ru/wiki/Server

rcon - remote console

You need setup a rcon password in your server.cfg
Type /admin yourrconpass to login ingame as admin


Use edit button and don't double post.
« Last Edit: April 24, 2011, 11:14:13 am by StriKe »

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: How to kick
« Reply #5 on: April 24, 2011, 10:43:44 am »
hey problem !

What is the pass of admin and what is rcon and What is that Commadns Strike how to do

RCON is for server administration. The password is in server.cfg where it says "rcon_password"
When you get the password, type /admin password and then /kick playerid

EDIT: Strike beat me to it
Do not PM me for support.




Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: How to kick
« Reply #6 on: April 24, 2011, 10:46:32 am »
Thanx but how to kick withreason

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: How to kick
« Reply #7 on: April 24, 2011, 10:48:06 am »
Thanx but how to kick withreason

You need to get or write a script that can do that.
Do not PM me for support.




Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: How to kick
« Reply #8 on: April 24, 2011, 10:48:41 am »
WHere is that script tell me

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: How to kick
« Reply #9 on: April 24, 2011, 10:49:22 am »
WHere is that script tell me

GUPS is a good starter script you can use to kick with reasons.
http://forum.vicecitymultiplayer.com/index.php?topic=1666.0
Do not PM me for support.




Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: How to kick
« Reply #10 on: April 24, 2011, 10:51:06 am »
is this admin login like VC-MP

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: How to kick
« Reply #11 on: April 24, 2011, 11:09:18 am »
is this admin login like VC-MP

No, use /c kick instead of /kick
/c kick [player] [reason]
Do not PM me for support.




Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: How to kick
« Reply #12 on: April 24, 2011, 02:57:00 pm »
how to unbnnned any player which is banned

yazeen

  • Guest
Re: How to kick
« Reply #13 on: April 24, 2011, 03:38:45 pm »
 /c kick [Nick/Id] [Reason](Credits to me)

   
Code: [Select]
}
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))
else if (!strlen(reason)) SendClientMessage(playerid,0xFFFF00AA,"USAGE: /c kick [Nick/ID] [Reason]");
   else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,0xFFFF00AA,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"Admin: %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
SendClientMessageToAll(0xFFFF00AA,szMsg);
Kick(plr);
}

If u Dont Have FindPlayerIdFromString Function Add it  (Credits to bakasan

Code: [Select]
public FindPlayerIDFromString(string[])
{// for determining player id from a string  -bakasan
new player = INACTIVE_PLAYER_ID;
new p = 0;
while (p < MAX_PLAYERS) { if (strfind(gPlayers[p],string,true) != -1) { player=p;break; } p++; }
if (player == INACTIVE_PLAYER_ID) {// string didnt match so check if it can be an id
if ((strlen(string) > 2) || (isnumeric(string) == 0)) { return INACTIVE_PLAYER_ID; }
player = strval(string);// string is numeric and not more than 2 digits
}
if (!IsPlayerConnected(player)) { return INACTIVE_PLAYER_ID; }
return player;// valid id found
}
return 1;
}

Unban/Ban Command(Credits to madara)
UnBan/Ban By madara
« Last Edit: April 24, 2011, 03:40:23 pm by yazeen »

Offline asad3man

  • Made Man
  • ***
  • Posts: 121
  • A for Asad "Lion of Allah"
    • View Profile
    • Ultra DM server Website
Re: How to kick
« Reply #14 on: April 24, 2011, 03:54:05 pm »
where to write it