13.01.2016, 16:23
Nope still doesnt help
This is how I drop it
And this is how I pick it up
This is how I drop it
PHP код:
DropPlayerGun(playerid,weaponid,ammo,Float:X,Float:Y,Float:Z,World,tmpInt) {
for(new GunId = 0; GunId < MAX_GUNDROP; GunId++) {
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-1, 90.0000, -90.0000, 90.0000, World, tmpInt = -1, -1,200.0);
return true;
}
}
return true;
}
PHP код:
for(new GunId = 0; GunId < MAX_GUNDROP; GunId++) {
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;
}
}
}