[Ajuda] ProxDetector
#6

pawn Код:
CMD:eu(playerid, params[]) {

    if (isnull(params))
        return SendClientMessage(playerid, -1, "Use: /eu [aзгo]");

    static
        i,
        e,
        Float:Pos[3],
        nome[24],
        str[128]
    ;

    GetPlayerName(playerid, nome, 24);
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);

    format (str, 128, "%s - %s", nome, params);

    for (i = 0, e = GetMaxPlayers(); i < e; ++i) {

        if (IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]) )
            SendClientMessage(i, -1, str);
    }

    return 1;
}
Reply


Messages In This Thread
ProxDetector - by sofina - 14.02.2014, 21:52
Re: ProxDetector - by Delete_ - 14.02.2014, 21:54
Re: ProxDetector - by sofina - 14.02.2014, 21:57
Re: ProxDetector - by Gii - 14.02.2014, 22:28
Re: ProxDetector - by sofina - 14.02.2014, 22:38
Re: ProxDetector - by Gii - 14.02.2014, 22:40
Re: ProxDetector - by sofina - 14.02.2014, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)