[Pedido] megafone para admins
#2

Se for base GF ...

pawn Код:
if (!strcmp(cmd, "/ma")) {

    if (PlayerInfo[playerid][pAdmin] == 0)
        return false;
       
    tmp = strtok(cmdtext, idx);
   
    if (!strlen(tmp))
        return SendClientMessage(playerid, COLOR_GRAD2, "USE: /ma [MENSAGEM]");
       
    new i, str[128], Float:Pos[3], myName[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerName(playerid, myName, MAX_PLAYER_NAME);
   
    format (str, 128, "Administrador:%s - %s", myName, tmp);
   
    for ( i = 0; i < MAX_PLAYERS; ++i ) {
   
        if (IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 60.0, Pos[0], Pos[1], Pos[2]))
            SendClientMessage(i, COLOR_YELLOW, str);
    }
    return 1;
}
Reply


Messages In This Thread
megafone para admins - by HHwilliamHH - 17.01.2014, 03:01
Re: megafone para admins - by Gii - 17.01.2014, 03:12
Re: megafone para admins - by zSuYaNw - 17.01.2014, 03:12
Re: megafone para admins - by Gii - 17.01.2014, 03:36
Re: megafone para admins - by zSuYaNw - 17.01.2014, 03:57
Re: megafone para admins - by Gii - 17.01.2014, 03:57
Re: megafone para admins - by zSuYaNw - 17.01.2014, 04:03
Re: megafone para admins - by Gii - 17.01.2014, 04:10
Re: megafone para admins - by zSuYaNw - 17.01.2014, 04:32
Re: megafone para admins - by Gii - 17.01.2014, 04:35

Forum Jump:


Users browsing this thread: 2 Guest(s)