• Welcome to Vice City Multiplayer.
 

How to kick

Started by asad3man, April 24, 2011, 06:35:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

asad3man

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

#1

sseebbyy

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

asad3man

#3
thanks
hey problem !

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

StriKe

#4
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.

stormeus

Quote from: asad3man on April 24, 2011, 08:30:30 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

asad3man

Thanx but how to kick withreason

stormeus

Quote from: asad3man on April 24, 2011, 08:46:32 AM
Thanx but how to kick withreason

You need to get or write a script that can do that.

asad3man

WHere is that script tell me

stormeus


asad3man

is this admin login like VC-MP

stormeus

Quote from: asad3man on April 24, 2011, 08:51:06 AM
is this admin login like VC-MP

No, use /c kick instead of /kick
/c kick [player] [reason]

asad3man

how to unbnnned any player which is banned

yazeen

#13
 /c kick [Nick/Id] [Reason](Credits to me)

   }
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

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

asad3man