GetNearest problem
#2

pawn Код:
for(new GunId = 0; GunId < MAX_GUNDROP; GunId++) {
        new Float:PosSome[3];
        GetDynamicObjectPos(GunObject[GunId],PosSome[0],PosSome[1],PosSome[2]);
        if(IsPlayerInRangeOfPoint(playerid,5.0,PosSome[0],PosSome[1],PosSome[2])) {
            if(GetPlayerVirtualWorld(playerid) == GunInfo[GunId][GunWorld]) {
                GivePlayerWeapon(playerid,GunInfo[GunId][GunWeaponID],GunInfo[GunId][GunWeaponAmmo]);
                DestroyDynamicObject(GunObject[GunId]);
                GunInfo[GunId][GunX] = 2000.00;
                GunInfo[GunId][GunY] = 2000.00;
                GunInfo[GunId][GunZ] = 3000.00;
                GunInfo[GunId][GunWorld] = 666;
                GunInfo[GunId][GunX] = 2000.00;
                break;
            }
        }
    }
Reply


Messages In This Thread
GetNearest problem - by Squirrel - 14.01.2016, 21:19
Re: GetNearest problem - by Eth - 14.01.2016, 21:20
Re: GetNearest problem - by Squirrel - 14.01.2016, 21:24
Re: GetNearest problem - by yvoms - 14.01.2016, 21:30
Re: GetNearest problem - by Squirrel - 14.01.2016, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)