12.12.2010, 14:16
its strange i cant figure it out what happens
like if i do /kick 1 hi there
it will appear ex:
AdmCmd: john has been kicked [reason: hjohn] so the first letter of the reason + his name
weired
like if i do /kick 1 hi there

it will appear ex:
AdmCmd: john has been kicked [reason: hjohn] so the first letter of the reason + his name
weired
pawn Код:
dcmd_kick(playerid,params[])
{
new id,pName[MAX_PLAYER_NAME],reason,string[128];
if(PInfo[playerid][Level] < 3) return 0;
if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,orange,"USAGE: /kick [playerid][reason]");
GetPlayerName(id,pName,sizeof(pName));
format(string,sizeof(string),"AdmCmd: %s has been kicked [reason: %s]",pName,reason);
SendClientMessageToAll(cream,string);
Kick(id);
return 1;
}