drop gun problem
#4

Already got it here is mine

pawn Код:
}
stock DropWeapons(gunID,gunAmmo,Float:x,Float:y,Float:z,world,playerid)
{
    if(IsADisabledWeapon(playerid,gunID))
    {
        return 1;
    }
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(gunID != 0 && gunAmmo != 0)
    {
        for(new i = 0; i < sizeof(DropInfo); i++)
        {
            if(DropInfo[playerid][dox] == 0.0 && DropInfo[playerid][doy] == 0.0 && DropInfo[playerid][doz] == 0.0)
            {
                DropInfo[playerid][dType] = 1;
                DropInfo[playerid][dAmount][0] = gunID;
                DropInfo[playerid][dAmount][1] = gunAmmo;
                DropInfo[playerid][dox] = x;
                DropInfo[playerid][doy] = y;
                DropInfo[playerid][doz] = z;
                DropInfo[playerid][dWorld] = world;
                strcpy(DropInfo[playerid][dPlayerName],name,MAX_PLAYER_NAME);
                DropObject[playerid] = CreateDynamicObject(gh_GetObjectID(gunID), z, y, z-1, 80.0, 0.0, 0.0, world);
                return 1;
            }
        }
        return 1;
    }
    return 1;
Reply


Messages In This Thread
drop gun problem - by N0FeaR - 04.06.2012, 19:15
Re: drop gun problem - by Firo - 04.06.2012, 19:23
Re: drop gun problem - by tiernantheman - 04.06.2012, 19:32
Re: drop gun problem - by N0FeaR - 04.06.2012, 19:34
Re: drop gun problem - by tiernantheman - 04.06.2012, 19:38
Re: drop gun problem - by Firo - 04.06.2012, 19:38
Re: drop gun problem - by N0FeaR - 04.06.2012, 20:36

Forum Jump:


Users browsing this thread: 2 Guest(s)