#3

I made a command
PHP код:
CMD:kick(playeridparams[])
{

new 
id;
if(
sscanf(params,"u"id)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /kick [id]");
if(!
IsPlayerConnected(id)) return SendClientMessage(playeridCOLOR_RED"This is player is not connected");
new 
name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playeridnamesizeof(name));
format(stringsizeof(string), "%s has been kicked by //name here"name);
SendClientMessageToAll(COLOR_REDstring);
SetTimerEx("KickDelay"2000false"i"playerid);
return 
1;

I want to add the player name who kicked the other player instead of "name here" how to make it ??
Reply


Messages In This Thread
Name - by nezo2001 - 27.12.2014, 20:06
Re: Name - by LetsOWN[PL] - 27.12.2014, 20:13
Re: Name - by nezo2001 - 27.12.2014, 20:19
Re: Name - by LetsOWN[PL] - 27.12.2014, 20:35
AW: Name - by CutX - 27.12.2014, 20:39

Forum Jump:


Users browsing this thread: 1 Guest(s)