SendAdminsMessage
#8

pawn Код:
CMD:help(playerid, params[])
{
    new
        iStr[128],
        pName[MAX_PLAYER_NAME];

    if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /Help < Message >");

    GetPlayerName(playerid, pName, sizeof(pName));

    format(iStr, sizeof(iStr), "%s(%d) requesting help: %s", pName, playerid, params);

    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i)) SendClientMessage(i, -1, iStr);
        }
    }
    return 1;
}
Reply


Messages In This Thread
SendAdminsMessage - by Alex_Obando - 03.03.2011, 21:53
Re: SendAdminsMessage - by Antonio [G-RP] - 03.03.2011, 21:56
Respuesta: SendAdminsMessage - by Alex_Obando - 03.03.2011, 21:58
Re: SendAdminsMessage - by Antonio [G-RP] - 03.03.2011, 22:02
Respuesta: SendAdminsMessage - by Alex_Obando - 03.03.2011, 22:21
Re: SendAdminsMessage - by Antonio [G-RP] - 03.03.2011, 22:24
Respuesta: SendAdminsMessage - by Alex_Obando - 03.03.2011, 22:31
Re: SendAdminsMessage - by [L3th4l] - 03.03.2011, 22:31
Re: SendAdminsMessage - by Antonio [G-RP] - 03.03.2011, 22:34
Respuesta: SendAdminsMessage - by Alex_Obando - 03.03.2011, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)