13.01.2016, 14:57
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;
}
}