Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - asad3man

Pages: 1 ... 5 6 [7] 8 9
92
Support / Re: How to kick
« on: April 25, 2011, 12:37:10 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


How to use these 1st one
When i am using 2nd one then reason isnot coming Why tell me i want to use 1st one When i put it it gives a huge list of error

93
Support / Re: How to kick
« on: April 25, 2011, 12:30:43 pm »
tahnx Stormous thanx

94
Support / Re: How to kick
« on: April 24, 2011, 05:03:32 pm »

95
Support / Re: How to kick
« on: April 24, 2011, 04:46:27 pm »
when i put it and compile it it says Error

96
Support / Re: How to kick
« on: April 24, 2011, 03:54:05 pm »
where to write it

97
Support / Re: How to kick
« on: April 24, 2011, 02:57:00 pm »
how to unbnnned any player which is banned

98
Support / Re: How to kick
« on: April 24, 2011, 10:51:06 am »
is this admin login like VC-MP

99
Support / Re: How to kick
« on: April 24, 2011, 10:48:41 am »
WHere is that script tell me

100
Support / Re: How to kick
« on: April 24, 2011, 10:46:32 am »
Thanx but how to kick withreason

101
Support / Re: How to kick
« 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

102
Support / 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

103
i known how to create and shows on internet Ur pakistani tell ur DSL company

104
Support / Re: How to create VC-MP Server shows on internet
« on: April 23, 2011, 09:14:42 pm »
Thanx now listed Love all

105
Support / Re: How to create VC-MP Server shows on internet
« on: April 23, 2011, 09:00:12 pm »
PM'ed u Check it

Pages: 1 ... 5 6 [7] 8 9