Small problem
#3

Nope still doesnt help

This is how I drop it
PHP код:
DropPlayerGun(playerid,weaponid,ammo,Float:X,Float:Y,Float:Z,World,tmpInt) {
    for(new 
GunId 0GunId MAX_GUNDROPGunId++) {
        if(
GunInfo[GunId][GunX] == 0.0 && GunInfo[GunId][GunY] == 0.0 && GunInfo[GunId][GunZ] == 0.0) {
            
GunInfo[GunId][GunWeaponID] = weaponid;
            
GunInfo[GunId][GunWeaponAmmo] = ammo;
            
GunInfo[GunId][GunX] = X;
            
GunInfo[GunId][GunX] = Y;
            
GunInfo[GunId][GunX] = Z;
            
GunInfo[GunId][GunWorld] = World;
            
GunInfo[GunId][GunInterior] = tmpInt;
            
GunObject[GunId] = CreateDynamicObject(GetGunObjectID(weaponid),X,Y,Z-190.0000, -90.000090.0000WorldtmpInt = -1, -1,200.0);
            return 
true;
        }
    }
    return 
true;

And this is how I pick it up
PHP код:
for(new GunId 0GunId MAX_GUNDROPGunId++) {
        if(
IsPlayerInRangeOfPoint(playerid,5.0,GunInfo[GunId][GunX],GunInfo[GunId][GunY],GunInfo[GunId][GunZ])) {
            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;
            }
        }
    } 
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)