[Pedido] /localizar
#4

pawn Код:
CMD:procurar(playerid, params[]) {
    if(isnull(params))
        return false;
    new id = strval(params);
    if(!IsPlayerConnected(id))
        return false;
    new Float:p[4], s[100], n[24], zones[MAX_ZONE_NAME];
    GetPlayerName(id, n, 24);
    GetPlayerPos(id, p[0], p[1], p[2]);
    GetPlayer2DZone(id, zones, MAX_ZONE_NAME);
    p[3] = GetPlayerDistanceFromPoint(playerid, p[0], p[1], p[2]);
    format(s, 100, "%s estб a %f metros de vocк [localidade: %s]", n, p[3], zones);
    SendClientMessage(playerid, -1, s);
    return true;
}
Й necessбrio a include a_zones.
Reply


Messages In This Thread
/localizar - by Nayara._. - 08.09.2012, 16:40
Re: /localizar - by DrTHE - 08.09.2012, 16:51
Re: /localizar - by Abravanel - 08.09.2012, 16:54
Re: /localizar - by FeelLikeASir_ - 08.09.2012, 17:09
Re: /localizar - by DrTHE - 08.09.2012, 17:14
Re: /localizar - by Nayara._. - 10.09.2012, 00:56
Re: /localizar - by Nayara._. - 10.09.2012, 01:32
Re: /localizar - by MarcosRodrigo - 01.05.2013, 16:05
Re: /localizar - by mau.tito - 01.05.2013, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)