Small problem
#2

pawn Код:
for(new GunId = 0; GunId < MAX_GUNDROP; GunId++) {
    if( IsPlayerInRangeOfPoint( playerid, 5.0, GunInfo[GunId][GunX], GunInfo[GunId][GunY], GunInfo[GunId][GunZ]) &&
        GetPlayerVirtualWorld(playerid) == GunInfo[GunId][GunWorld])
    {
        GunInfo[GunId][GunX] = 2000.0;
        GunInfo[GunId][GunY] = 2000.0;
        GunInfo[GunId][GunZ] = 3000.0
        GunInfo[GunId][GunWorld] = 666;

        GivePlayerWeapon(playerid, GunInfo[GunId][GunWeaponID], GunInfo[GunId][GunWeaponAmmo]);
                // Consider reseting GunWeaponID and GunWeaponAmmo
                //in here. But maybe it is not necessary.
        break;
    }
}
Reply


Messages In This Thread
Small problem - by Squirrel - 13.01.2016, 14:21
Re: Small problem - by LetsOWN[PL] - 13.01.2016, 14:57
Re: Small problem - by Squirrel - 13.01.2016, 16:23
Re: Small problem - by -CaRRoT - 13.01.2016, 17:17
Re: Small problem - by Squirrel - 13.01.2016, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)