SendClientMessageToAll Help
#2

try this. hope it helps

pawn Код:
COMMAND:kick(playerid, params[])
{
    new
        id,
        reason[128]
    ;
    if(IsPlayerAdmin(playerid) || PInfo[playerid][pAdmin] < 0) return SendPM(playerid, -1,"You're Not Authorized to use this command");
    if(sscanf(params, "us[128]", id,reason))  return SendPM(playerid, COLOR_GRAD2, "/kick [id] [reason]");
    if(id == INVALID_PLAYER_ID) return SendPM(playerid, COLOR_GRAD2, "The player is disconnected");
    format(string,sizeof(string),"AdmWrn: %s[%d] was kicked by %s[%d] reason: "COL_YELLOW"%s",PlayerName(id),id,PlayerName(playerid),playerid,reason);
    SendClientMessageToAll(COLOR_RED,string);
    Kick(id);
    return 1;
}
Cheers
PDS2012
Reply


Messages In This Thread
SendClientMessageToAll Help - by ofir060 - 01.03.2013, 17:04
Re: SendClientMessageToAll Help - by Patrick - 01.03.2013, 17:11
Re: SendClientMessageToAll Help - by AndreT - 01.03.2013, 17:29
Re: SendClientMessageToAll Help - by ofir060 - 01.03.2013, 18:43
Re: SendClientMessageToAll Help - by ofir060 - 01.03.2013, 19:42
Re: SendClientMessageToAll Help - by Patrick - 01.03.2013, 20:17
Re: SendClientMessageToAll Help - by AndreT - 01.03.2013, 21:57
Re: SendClientMessageToAll Help - by ofir060 - 01.03.2013, 23:12
Re: SendClientMessageToAll Help - by mittukuttan - 02.03.2013, 03:30
Re: SendClientMessageToAll Help - by Denying - 02.03.2013, 06:08

Forum Jump:


Users browsing this thread: 4 Guest(s)