/heal ID
#2

pawn Код:
stock Float:GetDistanceBetweenPlayers(p1,p2){
    new Float:x1,Float:y1,Float:z1,Float:x3,Float:y3,Float:z3;
    if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
        return -1.00;
    }
    GetPlayerPos(p1,x1,y1,z1);
    GetPlayerPos(p2,x3,y3,z3);
    return floatsqroot(floatpower(floatabs(floatsub(x3,x1)),2)+floatpower(floatabs(floatsub(y3,y1)),2)+floatpower(floatabs(floatsub(z3,z1)),2));
}
Reply


Messages In This Thread
/heal ID - by Crusty - 21.06.2010, 13:32
Re: /heal ID - by ViruZZzZ_ChiLLL - 21.06.2010, 13:37
Re: /heal ID - by Crusty - 21.06.2010, 13:39
Re: /heal ID - by Naxix - 21.06.2010, 13:57
Re: /heal ID - by aircombat - 21.06.2010, 14:48
Re: /heal ID - by RatHack - 21.06.2010, 14:57
Re: /heal ID - by MWF2 - 21.06.2010, 15:15

Forum Jump:


Users browsing this thread: 2 Guest(s)