[Pedido] /dararmas a todos proximos
#4

Quote:
Originally Posted by Bieeel_Cwb
Посмотреть сообщение
Uma base.


pawn Код:
CMD:armaperto(playerid, params[])
{
    new string[62];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(GetDistanceBetweenPlayers(playerid, i) <= 30)
        {
            if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
            {
                GivePlayerWeapon(i, 24, 9999);  //eagle.
            }
        }
    }
    return 1;
}


// Stock no final do GameMode.

stock GetDistanceBetweenPlayers(playerid, playerid2) {
    new Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2;
    new Float:tmpdis;
    GetPlayerPos(playerid, x1, y1, z1);
    GetPlayerPos(playerid2, x2, y2, z2);
    tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2, x1)), 2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
    return floatround(tmpdis);
}
tipo essa ai msm mano mais to procurando o q o cara escolhe a arma por id
Reply


Messages In This Thread
/dararmas a todos proximos - by cicinho - 05.02.2015, 17:34
Re: /dararmas a todos proximos - by NexNix - 05.02.2015, 17:35
Re: /dararmas a todos proximos - by Bieeel_Cwb - 05.02.2015, 17:42
Respuesta: Re: /dararmas a todos proximos - by cicinho - 05.02.2015, 17:47
Re: Respuesta: Re: /dararmas a todos proximos - by JkS - 05.02.2015, 17:48
Re: /dararmas a todos proximos - by Bieeel_Cwb - 05.02.2015, 17:51
Respuesta: Re: /dararmas a todos proximos - by cicinho - 05.02.2015, 18:07
Re: /dararmas a todos proximos - by ZeZin - 05.02.2015, 18:09
Re: Respuesta: Re: /dararmas a todos proximos - by ipsLuan - 05.02.2015, 18:22

Forum Jump:


Users browsing this thread: 5 Guest(s)